| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "content/public/browser/content_browser_client.h" | 12 #include "content/public/browser/content_browser_client.h" |
| 13 | 13 |
| 14 namespace chrome { | 14 namespace chrome { |
| 15 | 15 |
| 16 class ChromeContentBrowserClient : public content::ContentBrowserClient { | 16 class ChromeContentBrowserClient : public content::ContentBrowserClient { |
| 17 public: | 17 public: |
| 18 virtual void CreateBrowserMainParts( | 18 virtual void CreateBrowserMainParts( |
| 19 const content::MainFunctionParams& parameters, | 19 const content::MainFunctionParams& parameters, |
| 20 std::vector<content::BrowserMainParts*>* parts_list) OVERRIDE; | 20 std::vector<content::BrowserMainParts*>* parts_list) OVERRIDE; |
| 21 virtual RenderWidgetHostView* CreateViewForWidget( | 21 virtual RenderWidgetHostView* CreateViewForWidget( |
| 22 RenderWidgetHost* widget) OVERRIDE; | 22 RenderWidgetHost* widget) OVERRIDE; |
| 23 virtual TabContentsView* CreateTabContentsView( | 23 virtual TabContentsView* CreateTabContentsView( |
| 24 TabContents* tab_contents) OVERRIDE; | 24 TabContents* tab_contents) OVERRIDE; |
| 25 virtual void RenderViewHostCreated(RenderViewHost* render_view_host) OVERRIDE; | 25 virtual void RenderViewHostCreated(RenderViewHost* render_view_host) OVERRIDE; |
| 26 virtual void BrowserRenderProcessHostCreated( | 26 virtual void BrowserRenderProcessHostCreated( |
| 27 BrowserRenderProcessHost* host) OVERRIDE; | 27 BrowserRenderProcessHost* host) OVERRIDE; |
| 28 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE; | 28 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE; |
| 29 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) OVERRIDE; | |
| 30 virtual content::WebUIFactory* GetWebUIFactory() OVERRIDE; | 29 virtual content::WebUIFactory* GetWebUIFactory() OVERRIDE; |
| 31 virtual bool ShouldUseProcessPerSite(content::BrowserContext* browser_context, | 30 virtual bool ShouldUseProcessPerSite(content::BrowserContext* browser_context, |
| 32 const GURL& effective_url) OVERRIDE; | 31 const GURL& effective_url) OVERRIDE; |
| 33 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, | 32 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, |
| 34 const GURL& url) OVERRIDE; | 33 const GURL& url) OVERRIDE; |
| 35 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE; | 34 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE; |
| 36 virtual bool IsSuitableHost(RenderProcessHost* process_host, | 35 virtual bool IsSuitableHost(RenderProcessHost* process_host, |
| 37 const GURL& url) OVERRIDE; | 36 const GURL& url) OVERRIDE; |
| 38 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) OVERRIDE; | 37 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) OVERRIDE; |
| 39 virtual void SiteInstanceDeleting(SiteInstance* site_instance) OVERRIDE; | 38 virtual void SiteInstanceDeleting(SiteInstance* site_instance) OVERRIDE; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 57 int render_view_id) OVERRIDE; | 56 int render_view_id) OVERRIDE; |
| 58 virtual bool AllowSetCookie(const GURL& url, | 57 virtual bool AllowSetCookie(const GURL& url, |
| 59 const GURL& first_party, | 58 const GURL& first_party, |
| 60 const std::string& cookie_line, | 59 const std::string& cookie_line, |
| 61 const content::ResourceContext& context, | 60 const content::ResourceContext& context, |
| 62 int render_process_id, | 61 int render_process_id, |
| 63 int render_view_id, | 62 int render_view_id, |
| 64 net::CookieOptions* options) OVERRIDE; | 63 net::CookieOptions* options) OVERRIDE; |
| 65 virtual bool AllowSaveLocalState( | 64 virtual bool AllowSaveLocalState( |
| 66 const content::ResourceContext& context) OVERRIDE; | 65 const content::ResourceContext& context) OVERRIDE; |
| 66 virtual bool AllowWorkerDatabase( |
| 67 int worker_route_id, |
| 68 const GURL& url, |
| 69 const string16& name, |
| 70 const string16& display_name, |
| 71 unsigned long estimated_size, |
| 72 WorkerProcessHost* worker_process_host) OVERRIDE; |
| 73 virtual bool AllowWorkerFileSystem( |
| 74 int worker_route_id, |
| 75 const GURL& url, |
| 76 WorkerProcessHost* worker_process_host) OVERRIDE; |
| 67 virtual net::URLRequestContext* OverrideRequestContextForURL( | 77 virtual net::URLRequestContext* OverrideRequestContextForURL( |
| 68 const GURL& url, const content::ResourceContext& context) OVERRIDE; | 78 const GURL& url, const content::ResourceContext& context) OVERRIDE; |
| 69 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; | 79 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; |
| 70 virtual void OpenItem(const FilePath& path) OVERRIDE; | 80 virtual void OpenItem(const FilePath& path) OVERRIDE; |
| 71 virtual void ShowItemInFolder(const FilePath& path) OVERRIDE; | 81 virtual void ShowItemInFolder(const FilePath& path) OVERRIDE; |
| 72 virtual void AllowCertificateError( | 82 virtual void AllowCertificateError( |
| 73 SSLCertErrorHandler* handler, | 83 SSLCertErrorHandler* handler, |
| 74 bool overridable, | 84 bool overridable, |
| 75 const base::Callback<void(SSLCertErrorHandler*, bool)>& callback) | 85 const base::Callback<void(SSLCertErrorHandler*, bool)>& callback) |
| 76 OVERRIDE; | 86 OVERRIDE; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 #if defined(USE_NSS) | 147 #if defined(USE_NSS) |
| 138 virtual | 148 virtual |
| 139 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 149 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 140 const GURL& url) OVERRIDE; | 150 const GURL& url) OVERRIDE; |
| 141 #endif | 151 #endif |
| 142 }; | 152 }; |
| 143 | 153 |
| 144 } // namespace chrome | 154 } // namespace chrome |
| 145 | 155 |
| 146 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 156 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |