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_browser_context.h" | 8 #include "android_webview/browser/aw_browser_context.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 46 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
47 file_system_protocol_handler, | 47 file_system_protocol_handler, |
48 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 48 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
49 developer_protocol_handler, | 49 developer_protocol_handler, |
50 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 50 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
51 chrome_protocol_handler, | 51 chrome_protocol_handler, |
52 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 52 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
53 chrome_devtools_protocol_handler) OVERRIDE; | 53 chrome_devtools_protocol_handler) OVERRIDE; |
54 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 54 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
55 content::BrowserContext* browser_context, | 55 content::BrowserContext* browser_context, |
56 const FilePath& partition_path, | 56 const base::FilePath& partition_path, |
57 bool in_memory, | 57 bool in_memory, |
58 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 58 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
59 blob_protocol_handler, | 59 blob_protocol_handler, |
60 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 60 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
61 file_system_protocol_handler, | 61 file_system_protocol_handler, |
62 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 62 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
63 developer_protocol_handler, | 63 developer_protocol_handler, |
64 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 64 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
65 chrome_protocol_handler, | 65 chrome_protocol_handler, |
66 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 66 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 virtual void ResourceDispatcherHostCreated() OVERRIDE; | 143 virtual void ResourceDispatcherHostCreated() OVERRIDE; |
144 virtual net::NetLog* GetNetLog() OVERRIDE; | 144 virtual net::NetLog* GetNetLog() OVERRIDE; |
145 virtual content::AccessTokenStore* CreateAccessTokenStore() OVERRIDE; | 145 virtual content::AccessTokenStore* CreateAccessTokenStore() OVERRIDE; |
146 virtual bool IsFastShutdownPossible() OVERRIDE; | 146 virtual bool IsFastShutdownPossible() OVERRIDE; |
147 virtual void UpdateInspectorSetting(content::RenderViewHost* rvh, | 147 virtual void UpdateInspectorSetting(content::RenderViewHost* rvh, |
148 const std::string& key, | 148 const std::string& key, |
149 const std::string& value) OVERRIDE; | 149 const std::string& value) OVERRIDE; |
150 virtual void ClearInspectorSettings(content::RenderViewHost* rvh) OVERRIDE; | 150 virtual void ClearInspectorSettings(content::RenderViewHost* rvh) OVERRIDE; |
151 virtual void ClearCache(content::RenderViewHost* rvh) OVERRIDE; | 151 virtual void ClearCache(content::RenderViewHost* rvh) OVERRIDE; |
152 virtual void ClearCookies(content::RenderViewHost* rvh) OVERRIDE; | 152 virtual void ClearCookies(content::RenderViewHost* rvh) OVERRIDE; |
153 virtual FilePath GetDefaultDownloadDirectory() OVERRIDE; | 153 virtual base::FilePath GetDefaultDownloadDirectory() OVERRIDE; |
154 virtual std::string GetDefaultDownloadName() OVERRIDE; | 154 virtual std::string GetDefaultDownloadName() OVERRIDE; |
155 virtual void DidCreatePpapiPlugin( | 155 virtual void DidCreatePpapiPlugin( |
156 content::BrowserPpapiHost* browser_host) OVERRIDE; | 156 content::BrowserPpapiHost* browser_host) OVERRIDE; |
157 virtual bool AllowPepperSocketAPI( | 157 virtual bool AllowPepperSocketAPI( |
158 content::BrowserContext* browser_context, | 158 content::BrowserContext* browser_context, |
159 const GURL& url, | 159 const GURL& url, |
160 const content::SocketPermissionRequest& params) OVERRIDE; | 160 const content::SocketPermissionRequest& params) OVERRIDE; |
161 | 161 |
162 private: | 162 private: |
163 // Android WebView currently has a single global (non-off-the-record) browser | 163 // Android WebView currently has a single global (non-off-the-record) browser |
164 // context. | 164 // context. |
165 scoped_ptr<AwBrowserContext> browser_context_; | 165 scoped_ptr<AwBrowserContext> browser_context_; |
166 | 166 |
167 ViewDelegateFactoryFn* view_delegate_factory_; | 167 ViewDelegateFactoryFn* view_delegate_factory_; |
168 | 168 |
169 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); | 169 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); |
170 }; | 170 }; |
171 | 171 |
172 } // namespace android_webview | 172 } // namespace android_webview |
173 | 173 |
174 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 174 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |