diff options
author | Andras Becsi <andras.becsi@digia.com> | 2013-07-05 18:34:45 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-07-09 13:45:41 +0200 |
commit | 1daab3653e56469868656b32fa87b7f9585ec577 (patch) | |
tree | 10a9cfe812347ed2582a7f68a7ffdc27726e81c0 /lib/content_browser_client_qt.h | |
parent | a912e57e189847509efd75d8a4563ad8c7aa1079 (diff) |
Get rid of the need to export content::GetContentClient()
ContentBrowserClientQt is a singleton which makes it possible
to access it from WebContentsViewQt and removes the need for
patching chromium.
This is similar to how ShellContentBrowserClient is managed
in the content shell.
Change-Id: I67f35520935388888c7230806ad543a58b3211c3
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'lib/content_browser_client_qt.h')
-rw-r--r-- | lib/content_browser_client_qt.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/content_browser_client_qt.h b/lib/content_browser_client_qt.h index 32481ad60..5ba9363db 100644 --- a/lib/content_browser_client_qt.h +++ b/lib/content_browser_client_qt.h @@ -65,10 +65,12 @@ class BrowserMainPartsQt; class ContentBrowserClientQt : public content::ContentBrowserClient { public: + ContentBrowserClientQt(); + ~ContentBrowserClientQt(); + static ContentBrowserClientQt* Get(); virtual content::WebContentsViewPort* OverrideCreateWebContentsView(content::WebContents* , content::RenderViewHostDelegateView**) Q_DECL_OVERRIDE; virtual content::BrowserMainParts* CreateBrowserMainParts(const content::MainFunctionParams& parameters) Q_DECL_OVERRIDE; - BrowserContextQt* browser_context(); net::URLRequestContextGetter *CreateRequestContext(content::BrowserContext *content_browser_context, content::ProtocolHandlerMap *protocol_handlers); |