| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 // Deprecated: use AwBrowserContext::GetDefault() instead. | 27 // Deprecated: use AwBrowserContext::GetDefault() instead. |
| 28 static AwBrowserContext* GetAwBrowserContext(); | 28 static AwBrowserContext* GetAwBrowserContext(); |
| 29 | 29 |
| 30 AwContentBrowserClient(JniDependencyFactory* native_factory); | 30 AwContentBrowserClient(JniDependencyFactory* native_factory); |
| 31 ~AwContentBrowserClient() override; | 31 ~AwContentBrowserClient() override; |
| 32 | 32 |
| 33 // Allows AwBrowserMainParts to initialize a BrowserContext at the right | 33 // Allows AwBrowserMainParts to initialize a BrowserContext at the right |
| 34 // moment during startup. AwContentBrowserClient owns the result. | 34 // moment during startup. AwContentBrowserClient owns the result. |
| 35 AwBrowserContext* InitBrowserContext(); | 35 AwBrowserContext* InitBrowserContext(); |
| 36 | 36 |
| 37 // Overriden methods from ContentBrowserClient. | |
| 38 void AddCertificate(net::CertificateMimeType cert_type, | |
| 39 const void* cert_data, | |
| 40 size_t cert_size, | |
| 41 int render_process_id, | |
| 42 int render_frame_id) override; | |
| 43 content::BrowserMainParts* CreateBrowserMainParts( | 37 content::BrowserMainParts* CreateBrowserMainParts( |
| 44 const content::MainFunctionParams& parameters) override; | 38 const content::MainFunctionParams& parameters) override; |
| 45 content::WebContentsViewDelegate* GetWebContentsViewDelegate( | 39 content::WebContentsViewDelegate* GetWebContentsViewDelegate( |
| 46 content::WebContents* web_contents) override; | 40 content::WebContents* web_contents) override; |
| 47 void RenderProcessWillLaunch(content::RenderProcessHost* host) override; | 41 void RenderProcessWillLaunch(content::RenderProcessHost* host) override; |
| 48 bool IsHandledURL(const GURL& url) override; | 42 bool IsHandledURL(const GURL& url) override; |
| 49 std::string GetCanonicalEncodingNameByAliasName( | 43 std::string GetCanonicalEncodingNameByAliasName( |
| 50 const std::string& alias_name) override; | 44 const std::string& alias_name) override; |
| 51 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, | 45 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, |
| 52 int child_process_id) override; | 46 int child_process_id) override; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 std::unique_ptr<AwWebPreferencesPopulater> preferences_populater_; | 138 std::unique_ptr<AwWebPreferencesPopulater> preferences_populater_; |
| 145 | 139 |
| 146 JniDependencyFactory* native_factory_; | 140 JniDependencyFactory* native_factory_; |
| 147 | 141 |
| 148 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); | 142 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); |
| 149 }; | 143 }; |
| 150 | 144 |
| 151 } // namespace android_webview | 145 } // namespace android_webview |
| 152 | 146 |
| 153 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 147 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |