~osomon/oxide/fix-crash-popup-menu

« back to all changes in this revision

Viewing changes to qt/core/glue/oxide_qt_web_context_proxy_client.h

  • Committer: Chris Coulson
  • Date: 2015-04-21 20:24:31 UTC
  • Revision ID: chris.coulson@canonical.com-20150421202431-6023nguc4aod4s3k
Tidy up the navigator.userAgent override mechanism - an empty string is no override. The extra bool is redundant

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#ifndef _OXIDE_QT_CORE_GLUE_WEB_CONTEXT_PROXY_CLIENT_H_
19
19
#define _OXIDE_QT_CORE_GLUE_WEB_CONTEXT_PROXY_CLIENT_H_
20
20
 
 
21
#include <QString>
21
22
#include <QtGlobal>
22
23
 
23
24
class OxideQBeforeRedirectEvent;
29
30
template <typename T> class QList;
30
31
class QNetworkAccessManager;
31
32
class QNetworkCookie;
32
 
class QString;
33
33
class QUrl;
34
34
QT_END_NAMESPACE
35
35
 
62
62
 
63
63
    virtual void HandleStoragePermissionRequest(OxideQStoragePermissionRequest* req) = 0;
64
64
 
65
 
    virtual bool GetUserAgentOverride(const QUrl& url, QString* user_agent) = 0;
 
65
    virtual QString GetUserAgentOverride(const QUrl& url) = 0;
66
66
  };
67
67
};
68
68