| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 6 #define ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include "android_webview/browser/aw_web_preferences_populater.h" | 8 #include "android_webview/browser/aw_web_preferences_populater.h" |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // This is what AwContentBrowserClient::GetAcceptLangs uses. | 23 // This is what AwContentBrowserClient::GetAcceptLangs uses. |
| 24 static std::string GetAcceptLangsImpl(); | 24 static std::string GetAcceptLangsImpl(); |
| 25 | 25 |
| 26 // Deprecated: use AwBrowserContext::GetDefault() instead. | 26 // Deprecated: use AwBrowserContext::GetDefault() instead. |
| 27 static AwBrowserContext* GetAwBrowserContext(); | 27 static AwBrowserContext* GetAwBrowserContext(); |
| 28 | 28 |
| 29 AwContentBrowserClient(JniDependencyFactory* native_factory); | 29 AwContentBrowserClient(JniDependencyFactory* native_factory); |
| 30 virtual ~AwContentBrowserClient(); | 30 virtual ~AwContentBrowserClient(); |
| 31 | 31 |
| 32 // Overriden methods from ContentBrowserClient. | 32 // Overriden methods from ContentBrowserClient. |
| 33 virtual void AddCertificate(net::URLRequest* request, | 33 virtual void AddCertificate(net::CertificateMimeType cert_type, |
| 34 net::CertificateMimeType cert_type, | |
| 35 const void* cert_data, | 34 const void* cert_data, |
| 36 size_t cert_size, | 35 size_t cert_size, |
| 37 int render_process_id, | 36 int render_process_id, |
| 38 int render_view_id) OVERRIDE; | 37 int render_frame_id) OVERRIDE; |
| 39 virtual content::BrowserMainParts* CreateBrowserMainParts( | 38 virtual content::BrowserMainParts* CreateBrowserMainParts( |
| 40 const content::MainFunctionParams& parameters) OVERRIDE; | 39 const content::MainFunctionParams& parameters) OVERRIDE; |
| 41 virtual content::WebContentsViewDelegate* GetWebContentsViewDelegate( | 40 virtual content::WebContentsViewDelegate* GetWebContentsViewDelegate( |
| 42 content::WebContents* web_contents) OVERRIDE; | 41 content::WebContents* web_contents) OVERRIDE; |
| 43 virtual void RenderProcessWillLaunch( | 42 virtual void RenderProcessWillLaunch( |
| 44 content::RenderProcessHost* host) OVERRIDE; | 43 content::RenderProcessHost* host) OVERRIDE; |
| 45 virtual net::URLRequestContextGetter* CreateRequestContext( | 44 virtual net::URLRequestContextGetter* CreateRequestContext( |
| 46 content::BrowserContext* browser_context, | 45 content::BrowserContext* browser_context, |
| 47 content::ProtocolHandlerMap* protocol_handlers, | 46 content::ProtocolHandlerMap* protocol_handlers, |
| 48 content::URLRequestInterceptorScopedVector request_interceptors) OVERRIDE; | 47 content::URLRequestInterceptorScopedVector request_interceptors) OVERRIDE; |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 scoped_ptr<AwWebPreferencesPopulater> preferences_populater_; | 170 scoped_ptr<AwWebPreferencesPopulater> preferences_populater_; |
| 172 | 171 |
| 173 JniDependencyFactory* native_factory_; | 172 JniDependencyFactory* native_factory_; |
| 174 | 173 |
| 175 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); | 174 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); |
| 176 }; | 175 }; |
| 177 | 176 |
| 178 } // namespace android_webview | 177 } // namespace android_webview |
| 179 | 178 |
| 180 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 179 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |