| 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_BROWSER_AW_BROWSER_CONTEXT_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "android_webview/browser/aw_download_manager_delegate.h" | 10 #include "android_webview/browser/aw_download_manager_delegate.h" |
| 11 #include "android_webview/browser/aw_message_port_service.h" | 11 #include "android_webview/browser/aw_message_port_service.h" |
| 12 #include "android_webview/browser/aw_ssl_host_state_delegate.h" | 12 #include "android_webview/browser/aw_ssl_host_state_delegate.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
| 18 #include "components/visitedlink/browser/visitedlink_delegate.h" | 18 #include "components/visitedlink/browser/visitedlink_delegate.h" |
| 19 #include "components/web_restriction/content_resolver_web_restriction_provider.h
" |
| 19 #include "content/public/browser/browser_context.h" | 20 #include "content/public/browser/browser_context.h" |
| 20 #include "content/public/browser/content_browser_client.h" | 21 #include "content/public/browser/content_browser_client.h" |
| 21 #include "net/url_request/url_request_job_factory.h" | 22 #include "net/url_request/url_request_job_factory.h" |
| 22 | 23 |
| 23 class GURL; | 24 class GURL; |
| 24 class PrefService; | 25 class PrefService; |
| 25 | 26 |
| 26 namespace content { | 27 namespace content { |
| 27 class PermissionManager; | 28 class PermissionManager; |
| 28 class ResourceContext; | 29 class ResourceContext; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 AwFormDatabaseService* GetFormDatabaseService(); | 104 AwFormDatabaseService* GetFormDatabaseService(); |
| 104 data_reduction_proxy::DataReductionProxySettings* | 105 data_reduction_proxy::DataReductionProxySettings* |
| 105 GetDataReductionProxySettings(); | 106 GetDataReductionProxySettings(); |
| 106 data_reduction_proxy::DataReductionProxyIOData* | 107 data_reduction_proxy::DataReductionProxyIOData* |
| 107 GetDataReductionProxyIOData(); | 108 GetDataReductionProxyIOData(); |
| 108 AwURLRequestContextGetter* GetAwURLRequestContext(); | 109 AwURLRequestContextGetter* GetAwURLRequestContext(); |
| 109 AwMessagePortService* GetMessagePortService(); | 110 AwMessagePortService* GetMessagePortService(); |
| 110 | 111 |
| 111 policy::URLBlacklistManager* GetURLBlacklistManager(); | 112 policy::URLBlacklistManager* GetURLBlacklistManager(); |
| 112 | 113 |
| 114 web_restriction::ContentResolverWebRestrictionProvider* |
| 115 GetWebRestrictionProvider(); |
| 116 |
| 113 // content::BrowserContext implementation. | 117 // content::BrowserContext implementation. |
| 114 scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( | 118 scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( |
| 115 const base::FilePath& partition_path) override; | 119 const base::FilePath& partition_path) override; |
| 116 base::FilePath GetPath() const override; | 120 base::FilePath GetPath() const override; |
| 117 bool IsOffTheRecord() const override; | 121 bool IsOffTheRecord() const override; |
| 118 net::URLRequestContextGetter* GetRequestContext() override; | 122 net::URLRequestContextGetter* GetRequestContext() override; |
| 119 net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 123 net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
| 120 int renderer_child_id) override; | 124 int renderer_child_id) override; |
| 121 net::URLRequestContextGetter* GetMediaRequestContext() override; | 125 net::URLRequestContextGetter* GetMediaRequestContext() override; |
| 122 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( | 126 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 170 |
| 167 scoped_ptr<data_reduction_proxy::DataReductionProxySettings> | 171 scoped_ptr<data_reduction_proxy::DataReductionProxySettings> |
| 168 data_reduction_proxy_settings_; | 172 data_reduction_proxy_settings_; |
| 169 scoped_ptr<AwSSLHostStateDelegate> ssl_host_state_delegate_; | 173 scoped_ptr<AwSSLHostStateDelegate> ssl_host_state_delegate_; |
| 170 scoped_ptr<data_reduction_proxy::DataReductionProxyIOData> | 174 scoped_ptr<data_reduction_proxy::DataReductionProxyIOData> |
| 171 data_reduction_proxy_io_data_; | 175 data_reduction_proxy_io_data_; |
| 172 scoped_ptr<data_reduction_proxy::DataReductionProxyService> | 176 scoped_ptr<data_reduction_proxy::DataReductionProxyService> |
| 173 data_reduction_proxy_service_; | 177 data_reduction_proxy_service_; |
| 174 scoped_ptr<content::PermissionManager> permission_manager_; | 178 scoped_ptr<content::PermissionManager> permission_manager_; |
| 175 | 179 |
| 180 scoped_ptr<web_restriction::ContentResolverWebRestrictionProvider> |
| 181 web_restriction_provider_; |
| 182 |
| 176 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); | 183 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); |
| 177 }; | 184 }; |
| 178 | 185 |
| 179 } // namespace android_webview | 186 } // namespace android_webview |
| 180 | 187 |
| 181 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ | 188 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ |
| OLD | NEW |