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" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "content/public/browser/content_browser_client.h" | 12 #include "content/public/browser/content_browser_client.h" |
13 #include "net/url_request/url_request_job_factory.h" | |
14 | 13 |
15 struct WebPreferences; | 14 struct WebPreferences; |
16 | 15 |
17 namespace android_webview { | 16 namespace android_webview { |
18 | 17 |
19 class AwBrowserContext; | 18 class AwBrowserContext; |
20 class JniDependencyFactory; | 19 class JniDependencyFactory; |
21 | 20 |
22 class AwContentBrowserClient : public content::ContentBrowserClient { | 21 class AwContentBrowserClient : public content::ContentBrowserClient { |
23 public: | 22 public: |
(...skipping 15 matching lines...) Expand all Loading... |
39 int render_view_id) OVERRIDE; | 38 int render_view_id) OVERRIDE; |
40 virtual content::BrowserMainParts* CreateBrowserMainParts( | 39 virtual content::BrowserMainParts* CreateBrowserMainParts( |
41 const content::MainFunctionParams& parameters) OVERRIDE; | 40 const content::MainFunctionParams& parameters) OVERRIDE; |
42 virtual content::WebContentsViewDelegate* GetWebContentsViewDelegate( | 41 virtual content::WebContentsViewDelegate* GetWebContentsViewDelegate( |
43 content::WebContents* web_contents) OVERRIDE; | 42 content::WebContents* web_contents) OVERRIDE; |
44 virtual void RenderProcessWillLaunch( | 43 virtual void RenderProcessWillLaunch( |
45 content::RenderProcessHost* host) OVERRIDE; | 44 content::RenderProcessHost* host) OVERRIDE; |
46 virtual net::URLRequestContextGetter* CreateRequestContext( | 45 virtual net::URLRequestContextGetter* CreateRequestContext( |
47 content::BrowserContext* browser_context, | 46 content::BrowserContext* browser_context, |
48 content::ProtocolHandlerMap* protocol_handlers, | 47 content::ProtocolHandlerMap* protocol_handlers, |
49 content::ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; | 48 content::URLRequestInterceptorScopedVector request_interceptors) OVERRIDE; |
50 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 49 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
51 content::BrowserContext* browser_context, | 50 content::BrowserContext* browser_context, |
52 const base::FilePath& partition_path, | 51 const base::FilePath& partition_path, |
53 bool in_memory, | 52 bool in_memory, |
54 content::ProtocolHandlerMap* protocol_handlers, | 53 content::ProtocolHandlerMap* protocol_handlers, |
55 content::ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; | 54 content::URLRequestInterceptorScopedVector request_interceptors) OVERRIDE; |
56 virtual std::string GetCanonicalEncodingNameByAliasName( | 55 virtual std::string GetCanonicalEncodingNameByAliasName( |
57 const std::string& alias_name) OVERRIDE; | 56 const std::string& alias_name) OVERRIDE; |
58 virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line, | 57 virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line, |
59 int child_process_id) OVERRIDE; | 58 int child_process_id) OVERRIDE; |
60 virtual std::string GetApplicationLocale() OVERRIDE; | 59 virtual std::string GetApplicationLocale() OVERRIDE; |
61 virtual std::string GetAcceptLangs(content::BrowserContext* context) OVERRIDE; | 60 virtual std::string GetAcceptLangs(content::BrowserContext* context) OVERRIDE; |
62 virtual gfx::ImageSkia* GetDefaultFavicon() OVERRIDE; | 61 virtual gfx::ImageSkia* GetDefaultFavicon() OVERRIDE; |
63 virtual bool AllowAppCache(const GURL& manifest_url, | 62 virtual bool AllowAppCache(const GURL& manifest_url, |
64 const GURL& first_party, | 63 const GURL& first_party, |
65 content::ResourceContext* context) OVERRIDE; | 64 content::ResourceContext* context) OVERRIDE; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 scoped_ptr<AwWebPreferencesPopulater> preferences_populater_; | 171 scoped_ptr<AwWebPreferencesPopulater> preferences_populater_; |
173 | 172 |
174 JniDependencyFactory* native_factory_; | 173 JniDependencyFactory* native_factory_; |
175 | 174 |
176 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); | 175 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); |
177 }; | 176 }; |
178 | 177 |
179 } // namespace android_webview | 178 } // namespace android_webview |
180 | 179 |
181 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 180 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |