Chromium Code Reviews| Index: android_webview/browser/aw_content_browser_client.h |
| diff --git a/android_webview/browser/aw_content_browser_client.h b/android_webview/browser/aw_content_browser_client.h |
| index 2a83f200fe72d29de2df4e8e1767a64e5e94c176..5222a1ce7db9135d376ca0e5515e39df8224650b 100644 |
| --- a/android_webview/browser/aw_content_browser_client.h |
| +++ b/android_webview/browser/aw_content_browser_client.h |
| @@ -14,7 +14,10 @@ namespace android_webview { |
| class AwContentBrowserClient : public content::ContentBrowserClient { |
| public: |
| - AwContentBrowserClient(); |
| + typedef content::WebContentsViewDelegate* ViewDelegateFactory( |
|
joth
2012/12/11 02:37:39
suggest ViewDelegateFactoryFunction (or sometimes
boliu
2012/12/11 19:34:08
FactoryFn.
|
| + content::WebContents* web_contents); |
| + |
| + AwContentBrowserClient(ViewDelegateFactory* view_delegate_factory); |
| virtual ~AwContentBrowserClient(); |
| AwBrowserContext* GetAwBrowserContext(); |
| @@ -22,6 +25,8 @@ class AwContentBrowserClient : public content::ContentBrowserClient { |
| // Overriden methods from ContentBrowserClient. |
| virtual content::BrowserMainParts* CreateBrowserMainParts( |
| const content::MainFunctionParams& parameters) OVERRIDE; |
| + virtual content::WebContentsViewDelegate* GetWebContentsViewDelegate( |
| + content::WebContents* web_contents) OVERRIDE; |
| virtual void RenderProcessHostCreated( |
| content::RenderProcessHost* host) OVERRIDE; |
| virtual std::string GetCanonicalEncodingNameByAliasName( |
| @@ -119,11 +124,14 @@ class AwContentBrowserClient : public content::ContentBrowserClient { |
| content::BrowserContext* browser_context, |
| const GURL& url, |
| const content::SocketPermissionRequest& params) OVERRIDE; |
| + |
| private: |
| // Android WebView currently has a single global (non-off-the-record) browser |
| // context. |
| scoped_ptr<AwBrowserContext> browser_context_; |
| + ViewDelegateFactory* view_delegate_factory_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); |
| }; |