| 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 "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "content/browser/content_browser_client.h" | 10 #include "content/browser/content_browser_client.h" |
| 11 | 11 |
| 12 class QuotaPermissionContext; | |
| 13 | |
| 14 namespace chrome { | 12 namespace chrome { |
| 15 | 13 |
| 16 class ChromeContentBrowserClient : public content::ContentBrowserClient { | 14 class ChromeContentBrowserClient : public content::ContentBrowserClient { |
| 17 public: | 15 public: |
| 18 virtual void RenderViewHostCreated(RenderViewHost* render_view_host) OVERRIDE; | 16 virtual void RenderViewHostCreated(RenderViewHost* render_view_host) OVERRIDE; |
| 19 virtual void BrowserRenderProcessHostCreated( | 17 virtual void BrowserRenderProcessHostCreated( |
| 20 BrowserRenderProcessHost* host) OVERRIDE; | 18 BrowserRenderProcessHost* host) OVERRIDE; |
| 21 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE; | 19 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE; |
| 22 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) OVERRIDE; | 20 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) OVERRIDE; |
| 23 virtual content::WebUIFactory* GetWebUIFactory() OVERRIDE; | 21 virtual content::WebUIFactory* GetWebUIFactory() OVERRIDE; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 43 int render_view_id) OVERRIDE; | 41 int render_view_id) OVERRIDE; |
| 44 virtual bool AllowSetCookie(const GURL& url, | 42 virtual bool AllowSetCookie(const GURL& url, |
| 45 const GURL& first_party, | 43 const GURL& first_party, |
| 46 const std::string& cookie_line, | 44 const std::string& cookie_line, |
| 47 const content::ResourceContext& context, | 45 const content::ResourceContext& context, |
| 48 int render_process_id, | 46 int render_process_id, |
| 49 int render_view_id, | 47 int render_view_id, |
| 50 net::CookieOptions* options) OVERRIDE; | 48 net::CookieOptions* options) OVERRIDE; |
| 51 virtual bool AllowSaveLocalState( | 49 virtual bool AllowSaveLocalState( |
| 52 const content::ResourceContext& context) OVERRIDE; | 50 const content::ResourceContext& context) OVERRIDE; |
| 51 virtual PluginService::Filter* CreatePluginFilter( |
| 52 int render_process_id, |
| 53 int render_view_id, |
| 54 const content::ResourceContext& resource_context, |
| 55 const GURL& url, |
| 56 const GURL& policy_url) OVERRIDE; |
| 53 virtual net::URLRequestContext* OverrideRequestContextForURL( | 57 virtual net::URLRequestContext* OverrideRequestContextForURL( |
| 54 const GURL& url, const content::ResourceContext& context) OVERRIDE; | 58 const GURL& url, const content::ResourceContext& context) OVERRIDE; |
| 55 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; | 59 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; |
| 56 virtual void RevealFolderInOS(const FilePath& path) OVERRIDE; | 60 virtual void RevealFolderInOS(const FilePath& path) OVERRIDE; |
| 57 virtual void AllowCertificateError( | 61 virtual void AllowCertificateError( |
| 58 SSLCertErrorHandler* handler, | 62 SSLCertErrorHandler* handler, |
| 59 bool overridable, | 63 bool overridable, |
| 60 Callback2<SSLCertErrorHandler*, bool>::Type* callback) OVERRIDE; | 64 Callback2<SSLCertErrorHandler*, bool>::Type* callback) OVERRIDE; |
| 61 virtual void ShowClientCertificateRequestDialog( | 65 virtual void ShowClientCertificateRequestDialog( |
| 62 int render_process_id, | 66 int render_process_id, |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 #if defined(USE_NSS) | 131 #if defined(USE_NSS) |
| 128 virtual | 132 virtual |
| 129 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 133 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 130 const GURL& url) OVERRIDE; | 134 const GURL& url) OVERRIDE; |
| 131 #endif | 135 #endif |
| 132 }; | 136 }; |
| 133 | 137 |
| 134 } // namespace chrome | 138 } // namespace chrome |
| 135 | 139 |
| 136 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 140 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |