| 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 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 namespace content { | 24 namespace content { |
| 25 class ResourceContext; | 25 class ResourceContext; |
| 26 class SSLHostStateDelegate; | 26 class SSLHostStateDelegate; |
| 27 class WebContents; | 27 class WebContents; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace data_reduction_proxy { | 30 namespace data_reduction_proxy { |
| 31 class DataReductionProxyConfigurator; | 31 class DataReductionProxyConfigurator; |
| 32 class DataReductionProxySettings; | 32 class DataReductionProxySettings; |
| 33 class DataReductionProxyStatisticsPrefs; |
| 33 } | 34 } |
| 34 | 35 |
| 35 namespace net { | 36 namespace net { |
| 36 class CookieStore; | 37 class CookieStore; |
| 37 } | 38 } |
| 38 | 39 |
| 39 namespace visitedlink { | 40 namespace visitedlink { |
| 40 class VisitedLinkMaster; | 41 class VisitedLinkMaster; |
| 41 } | 42 } |
| 42 | 43 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 virtual content::BrowserPluginGuestManager* GetGuestManager() OVERRIDE; | 110 virtual content::BrowserPluginGuestManager* GetGuestManager() OVERRIDE; |
| 110 virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; | 111 virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; |
| 111 virtual content::PushMessagingService* GetPushMessagingService() OVERRIDE; | 112 virtual content::PushMessagingService* GetPushMessagingService() OVERRIDE; |
| 112 virtual content::SSLHostStateDelegate* GetSSLHostStateDelegate() OVERRIDE; | 113 virtual content::SSLHostStateDelegate* GetSSLHostStateDelegate() OVERRIDE; |
| 113 | 114 |
| 114 // visitedlink::VisitedLinkDelegate implementation. | 115 // visitedlink::VisitedLinkDelegate implementation. |
| 115 virtual void RebuildTable( | 116 virtual void RebuildTable( |
| 116 const scoped_refptr<URLEnumerator>& enumerator) OVERRIDE; | 117 const scoped_refptr<URLEnumerator>& enumerator) OVERRIDE; |
| 117 | 118 |
| 118 private: | 119 private: |
| 120 void CreateDataReductionProxyStatisticsIfNecessary(); |
| 119 static bool data_reduction_proxy_enabled_; | 121 static bool data_reduction_proxy_enabled_; |
| 120 | 122 |
| 121 // The file path where data for this context is persisted. | 123 // The file path where data for this context is persisted. |
| 122 base::FilePath context_storage_path_; | 124 base::FilePath context_storage_path_; |
| 123 | 125 |
| 124 JniDependencyFactory* native_factory_; | 126 JniDependencyFactory* native_factory_; |
| 125 scoped_refptr<net::CookieStore> cookie_store_; | 127 scoped_refptr<net::CookieStore> cookie_store_; |
| 126 scoped_refptr<AwURLRequestContextGetter> url_request_context_getter_; | 128 scoped_refptr<AwURLRequestContextGetter> url_request_context_getter_; |
| 127 scoped_refptr<AwQuotaManagerBridge> quota_manager_bridge_; | 129 scoped_refptr<AwQuotaManagerBridge> quota_manager_bridge_; |
| 128 scoped_ptr<AwFormDatabaseService> form_database_service_; | 130 scoped_ptr<AwFormDatabaseService> form_database_service_; |
| 129 | 131 |
| 130 AwDownloadManagerDelegate download_manager_delegate_; | 132 AwDownloadManagerDelegate download_manager_delegate_; |
| 131 | 133 |
| 132 scoped_ptr<visitedlink::VisitedLinkMaster> visitedlink_master_; | 134 scoped_ptr<visitedlink::VisitedLinkMaster> visitedlink_master_; |
| 133 scoped_ptr<content::ResourceContext> resource_context_; | 135 scoped_ptr<content::ResourceContext> resource_context_; |
| 134 | 136 |
| 135 scoped_ptr<PrefService> user_pref_service_; | 137 scoped_ptr<PrefService> user_pref_service_; |
| 136 | 138 |
| 137 scoped_ptr<data_reduction_proxy::DataReductionProxyConfigurator> | 139 scoped_ptr<data_reduction_proxy::DataReductionProxyConfigurator> |
| 138 data_reduction_proxy_configurator_; | 140 data_reduction_proxy_configurator_; |
| 141 scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs> |
| 142 data_reduction_proxy_statistics_; |
| 139 scoped_ptr<data_reduction_proxy::DataReductionProxySettings> | 143 scoped_ptr<data_reduction_proxy::DataReductionProxySettings> |
| 140 data_reduction_proxy_settings_; | 144 data_reduction_proxy_settings_; |
| 141 | 145 |
| 142 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); | 146 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); |
| 143 }; | 147 }; |
| 144 | 148 |
| 145 } // namespace android_webview | 149 } // namespace android_webview |
| 146 | 150 |
| 147 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ | 151 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ |
| OLD | NEW |