| 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> |
| 10 |
| 9 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 10 #include "content/browser/content_browser_client.h" | 12 #include "content/browser/content_browser_client.h" |
| 11 | 13 |
| 12 namespace chrome { | 14 namespace chrome { |
| 13 | 15 |
| 14 class ChromeContentBrowserClient : public content::ContentBrowserClient { | 16 class ChromeContentBrowserClient : public content::ContentBrowserClient { |
| 15 public: | 17 public: |
| 16 virtual void RenderViewHostCreated(RenderViewHost* render_view_host) OVERRIDE; | 18 virtual void RenderViewHostCreated(RenderViewHost* render_view_host) OVERRIDE; |
| 17 virtual void BrowserRenderProcessHostCreated( | 19 virtual void BrowserRenderProcessHostCreated( |
| 18 BrowserRenderProcessHost* host) OVERRIDE; | 20 BrowserRenderProcessHost* host) OVERRIDE; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 const content::ResourceContext& context) OVERRIDE; | 52 const content::ResourceContext& context) OVERRIDE; |
| 51 virtual net::URLRequestContext* OverrideRequestContextForURL( | 53 virtual net::URLRequestContext* OverrideRequestContextForURL( |
| 52 const GURL& url, const content::ResourceContext& context) OVERRIDE; | 54 const GURL& url, const content::ResourceContext& context) OVERRIDE; |
| 53 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; | 55 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; |
| 54 virtual void OpenItem(const FilePath& path) OVERRIDE; | 56 virtual void OpenItem(const FilePath& path) OVERRIDE; |
| 55 virtual void ShowItemInFolder(const FilePath& path) OVERRIDE; | 57 virtual void ShowItemInFolder(const FilePath& path) OVERRIDE; |
| 56 virtual void AllowCertificateError( | 58 virtual void AllowCertificateError( |
| 57 SSLCertErrorHandler* handler, | 59 SSLCertErrorHandler* handler, |
| 58 bool overridable, | 60 bool overridable, |
| 59 Callback2<SSLCertErrorHandler*, bool>::Type* callback) OVERRIDE; | 61 Callback2<SSLCertErrorHandler*, bool>::Type* callback) OVERRIDE; |
| 60 virtual void ShowClientCertificateRequestDialog( | 62 virtual void SelectClientCertificate( |
| 61 int render_process_id, | 63 int render_process_id, |
| 62 int render_view_id, | 64 int render_view_id, |
| 63 SSLClientAuthHandler* handler) OVERRIDE; | 65 SSLClientAuthHandler* handler) OVERRIDE; |
| 64 virtual void AddNewCertificate( | 66 virtual void AddNewCertificate( |
| 65 net::URLRequest* request, | 67 net::URLRequest* request, |
| 66 net::X509Certificate* cert, | 68 net::X509Certificate* cert, |
| 67 int render_process_id, | 69 int render_process_id, |
| 68 int render_view_id) OVERRIDE; | 70 int render_view_id) OVERRIDE; |
| 69 virtual void RequestDesktopNotificationPermission( | 71 virtual void RequestDesktopNotificationPermission( |
| 70 const GURL& source_origin, | 72 const GURL& source_origin, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 #if defined(USE_NSS) | 117 #if defined(USE_NSS) |
| 116 virtual | 118 virtual |
| 117 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 119 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 118 const GURL& url) OVERRIDE; | 120 const GURL& url) OVERRIDE; |
| 119 #endif | 121 #endif |
| 120 }; | 122 }; |
| 121 | 123 |
| 122 } // namespace chrome | 124 } // namespace chrome |
| 123 | 125 |
| 124 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 126 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |