| 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/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.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 "content/public/browser/browser_context.h" | 19 #include "content/public/browser/browser_context.h" |
| 20 #include "content/public/browser/content_browser_client.h" | 20 #include "content/public/browser/content_browser_client.h" |
| 21 #include "net/url_request/url_request_job_factory.h" | 21 #include "net/url_request/url_request_job_factory.h" |
| 22 | 22 |
| 23 class GURL; | 23 class GURL; |
| 24 class PrefService; | 24 class PrefService; |
| 25 | 25 |
| 26 namespace content { | 26 namespace content { |
| 27 class PermissionManager; |
| 27 class ResourceContext; | 28 class ResourceContext; |
| 28 class SSLHostStateDelegate; | 29 class SSLHostStateDelegate; |
| 29 class WebContents; | 30 class WebContents; |
| 30 } | 31 } |
| 31 | 32 |
| 32 namespace data_reduction_proxy { | 33 namespace data_reduction_proxy { |
| 33 class DataReductionProxyConfigurator; | 34 class DataReductionProxyConfigurator; |
| 34 class DataReductionProxyIOData; | 35 class DataReductionProxyIOData; |
| 35 class DataReductionProxyService; | 36 class DataReductionProxyService; |
| 36 class DataReductionProxySettings; | 37 class DataReductionProxySettings; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 int renderer_child_id) override; | 115 int renderer_child_id) override; |
| 115 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( | 116 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( |
| 116 const base::FilePath& partition_path, | 117 const base::FilePath& partition_path, |
| 117 bool in_memory) override; | 118 bool in_memory) override; |
| 118 content::ResourceContext* GetResourceContext() override; | 119 content::ResourceContext* GetResourceContext() override; |
| 119 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; | 120 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; |
| 120 content::BrowserPluginGuestManager* GetGuestManager() override; | 121 content::BrowserPluginGuestManager* GetGuestManager() override; |
| 121 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; | 122 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; |
| 122 content::PushMessagingService* GetPushMessagingService() override; | 123 content::PushMessagingService* GetPushMessagingService() override; |
| 123 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; | 124 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; |
| 125 content::PermissionManager* GetPermissionManager() override; |
| 124 | 126 |
| 125 // visitedlink::VisitedLinkDelegate implementation. | 127 // visitedlink::VisitedLinkDelegate implementation. |
| 126 void RebuildTable(const scoped_refptr<URLEnumerator>& enumerator) override; | 128 void RebuildTable(const scoped_refptr<URLEnumerator>& enumerator) override; |
| 127 | 129 |
| 128 private: | 130 private: |
| 129 void CreateDataReductionProxyStatisticsIfNecessary(); | 131 void CreateDataReductionProxyStatisticsIfNecessary(); |
| 130 static bool data_reduction_proxy_enabled_; | 132 static bool data_reduction_proxy_enabled_; |
| 131 | 133 |
| 132 // Delay, in milliseconds, before removing the legacy cache dir. | 134 // Delay, in milliseconds, before removing the legacy cache dir. |
| 133 // This is non-const for testing purposes. | 135 // This is non-const for testing purposes. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 150 | 152 |
| 151 scoped_ptr<PrefService> user_pref_service_; | 153 scoped_ptr<PrefService> user_pref_service_; |
| 152 | 154 |
| 153 scoped_ptr<data_reduction_proxy::DataReductionProxySettings> | 155 scoped_ptr<data_reduction_proxy::DataReductionProxySettings> |
| 154 data_reduction_proxy_settings_; | 156 data_reduction_proxy_settings_; |
| 155 scoped_ptr<AwSSLHostStateDelegate> ssl_host_state_delegate_; | 157 scoped_ptr<AwSSLHostStateDelegate> ssl_host_state_delegate_; |
| 156 scoped_ptr<data_reduction_proxy::DataReductionProxyIOData> | 158 scoped_ptr<data_reduction_proxy::DataReductionProxyIOData> |
| 157 data_reduction_proxy_io_data_; | 159 data_reduction_proxy_io_data_; |
| 158 scoped_ptr<data_reduction_proxy::DataReductionProxyService> | 160 scoped_ptr<data_reduction_proxy::DataReductionProxyService> |
| 159 data_reduction_proxy_service_; | 161 data_reduction_proxy_service_; |
| 162 scoped_ptr<content::PermissionManager> permission_manager_; |
| 160 | 163 |
| 161 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); | 164 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); |
| 162 }; | 165 }; |
| 163 | 166 |
| 164 } // namespace android_webview | 167 } // namespace android_webview |
| 165 | 168 |
| 166 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ | 169 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ |
| OLD | NEW |