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" |
(...skipping 11 matching lines...) Expand all Loading... |
22 class GURL; | 22 class GURL; |
23 class PrefService; | 23 class PrefService; |
24 | 24 |
25 namespace content { | 25 namespace content { |
26 class ResourceContext; | 26 class ResourceContext; |
27 class SSLHostStateDelegate; | 27 class SSLHostStateDelegate; |
28 class WebContents; | 28 class WebContents; |
29 } | 29 } |
30 | 30 |
31 namespace data_reduction_proxy { | 31 namespace data_reduction_proxy { |
32 class DataReductionProxyConfigurator; | 32 class DataReductionProxyIOData; |
33 class DataReductionProxyEventStore; | |
34 class DataReductionProxySettings; | 33 class DataReductionProxySettings; |
35 class DataReductionProxyStatisticsPrefs; | |
36 } | 34 } |
37 | 35 |
38 namespace net { | 36 namespace net { |
39 class CookieStore; | 37 class CookieStore; |
40 } | 38 } |
41 | 39 |
42 namespace visitedlink { | 40 namespace visitedlink { |
43 class VisitedLinkMaster; | 41 class VisitedLinkMaster; |
44 } | 42 } |
45 | 43 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 content::ProtocolHandlerMap* protocol_handlers, | 82 content::ProtocolHandlerMap* protocol_handlers, |
85 content::URLRequestInterceptorScopedVector request_interceptors); | 83 content::URLRequestInterceptorScopedVector request_interceptors); |
86 | 84 |
87 AwQuotaManagerBridge* GetQuotaManagerBridge(); | 85 AwQuotaManagerBridge* GetQuotaManagerBridge(); |
88 | 86 |
89 AwFormDatabaseService* GetFormDatabaseService(); | 87 AwFormDatabaseService* GetFormDatabaseService(); |
90 | 88 |
91 data_reduction_proxy::DataReductionProxySettings* | 89 data_reduction_proxy::DataReductionProxySettings* |
92 GetDataReductionProxySettings(); | 90 GetDataReductionProxySettings(); |
93 | 91 |
94 data_reduction_proxy::DataReductionProxyEventStore* | 92 data_reduction_proxy::DataReductionProxyIOData* |
95 GetDataReductionProxyEventStore(); | 93 GetDataReductionProxyIOData(); |
96 | 94 |
97 AwURLRequestContextGetter* GetAwURLRequestContext(); | 95 AwURLRequestContextGetter* GetAwURLRequestContext(); |
98 | 96 |
99 void CreateUserPrefServiceIfNecessary(); | 97 void CreateUserPrefServiceIfNecessary(); |
100 | 98 |
101 // content::BrowserContext implementation. | 99 // content::BrowserContext implementation. |
102 scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( | 100 scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( |
103 const base::FilePath& partition_path) override; | 101 const base::FilePath& partition_path) override; |
104 virtual base::FilePath GetPath() const override; | 102 virtual base::FilePath GetPath() const override; |
105 virtual bool IsOffTheRecord() const override; | 103 virtual bool IsOffTheRecord() const override; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 scoped_refptr<AwQuotaManagerBridge> quota_manager_bridge_; | 139 scoped_refptr<AwQuotaManagerBridge> quota_manager_bridge_; |
142 scoped_ptr<AwFormDatabaseService> form_database_service_; | 140 scoped_ptr<AwFormDatabaseService> form_database_service_; |
143 | 141 |
144 AwDownloadManagerDelegate download_manager_delegate_; | 142 AwDownloadManagerDelegate download_manager_delegate_; |
145 | 143 |
146 scoped_ptr<visitedlink::VisitedLinkMaster> visitedlink_master_; | 144 scoped_ptr<visitedlink::VisitedLinkMaster> visitedlink_master_; |
147 scoped_ptr<content::ResourceContext> resource_context_; | 145 scoped_ptr<content::ResourceContext> resource_context_; |
148 | 146 |
149 scoped_ptr<PrefService> user_pref_service_; | 147 scoped_ptr<PrefService> user_pref_service_; |
150 | 148 |
151 scoped_ptr<data_reduction_proxy::DataReductionProxyConfigurator> | |
152 data_reduction_proxy_configurator_; | |
153 scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs> | |
154 data_reduction_proxy_statistics_; | |
155 scoped_ptr<data_reduction_proxy::DataReductionProxySettings> | 149 scoped_ptr<data_reduction_proxy::DataReductionProxySettings> |
156 data_reduction_proxy_settings_; | 150 data_reduction_proxy_settings_; |
157 scoped_ptr<data_reduction_proxy::DataReductionProxyEventStore> | |
158 data_reduction_proxy_event_store_; | |
159 scoped_ptr<AwSSLHostStateDelegate> ssl_host_state_delegate_; | 151 scoped_ptr<AwSSLHostStateDelegate> ssl_host_state_delegate_; |
| 152 scoped_ptr<data_reduction_proxy::DataReductionProxyIOData> |
| 153 data_reduction_proxy_io_data_; |
160 | 154 |
161 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); | 155 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); |
162 }; | 156 }; |
163 | 157 |
164 } // namespace android_webview | 158 } // namespace android_webview |
165 | 159 |
166 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ | 160 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ |
OLD | NEW |