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 22 matching lines...) Expand all Loading... |
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 content::BrowserMainParts* CreateBrowserMainParts( | 37 content::BrowserMainParts* CreateBrowserMainParts( |
38 const content::MainFunctionParams& parameters) override; | 38 const content::MainFunctionParams& parameters) override; |
39 content::WebContentsViewDelegate* GetWebContentsViewDelegate( | 39 content::WebContentsViewDelegate* GetWebContentsViewDelegate( |
40 content::WebContents* web_contents) override; | 40 content::WebContents* web_contents) override; |
41 void RenderProcessWillLaunch(content::RenderProcessHost* host) override; | 41 void RenderProcessWillLaunch(content::RenderProcessHost* host) override; |
42 bool IsHandledURL(const GURL& url) override; | 42 bool IsHandledURL(const GURL& url) override; |
43 std::string GetCanonicalEncodingNameByAliasName( | |
44 const std::string& alias_name) override; | |
45 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, | 43 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, |
46 int child_process_id) override; | 44 int child_process_id) override; |
47 std::string GetApplicationLocale() override; | 45 std::string GetApplicationLocale() override; |
48 std::string GetAcceptLangs(content::BrowserContext* context) override; | 46 std::string GetAcceptLangs(content::BrowserContext* context) override; |
49 const gfx::ImageSkia* GetDefaultFavicon() override; | 47 const gfx::ImageSkia* GetDefaultFavicon() override; |
50 bool AllowAppCache(const GURL& manifest_url, | 48 bool AllowAppCache(const GURL& manifest_url, |
51 const GURL& first_party, | 49 const GURL& first_party, |
52 content::ResourceContext* context) override; | 50 content::ResourceContext* context) override; |
53 bool AllowGetCookie(const GURL& url, | 51 bool AllowGetCookie(const GURL& url, |
54 const GURL& first_party, | 52 const GURL& first_party, |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 std::unique_ptr<AwWebPreferencesPopulater> preferences_populater_; | 141 std::unique_ptr<AwWebPreferencesPopulater> preferences_populater_; |
144 | 142 |
145 JniDependencyFactory* native_factory_; | 143 JniDependencyFactory* native_factory_; |
146 | 144 |
147 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); | 145 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); |
148 }; | 146 }; |
149 | 147 |
150 } // namespace android_webview | 148 } // namespace android_webview |
151 | 149 |
152 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 150 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |