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_ssl_host_state_delegate.h" | 12 #include "android_webview/browser/aw_ssl_host_state_delegate.h" |
12 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
13 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
14 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
15 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
16 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
17 #include "components/visitedlink/browser/visitedlink_delegate.h" | 18 #include "components/visitedlink/browser/visitedlink_delegate.h" |
18 #include "content/public/browser/browser_context.h" | 19 #include "content/public/browser/browser_context.h" |
19 #include "content/public/browser/content_browser_client.h" | 20 #include "content/public/browser/content_browser_client.h" |
20 #include "net/url_request/url_request_job_factory.h" | 21 #include "net/url_request/url_request_job_factory.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 data_reduction_proxy::DataReductionProxySettings* | 92 data_reduction_proxy::DataReductionProxySettings* |
92 GetDataReductionProxySettings(); | 93 GetDataReductionProxySettings(); |
93 | 94 |
94 data_reduction_proxy::DataReductionProxyEventStore* | 95 data_reduction_proxy::DataReductionProxyEventStore* |
95 GetDataReductionProxyEventStore(); | 96 GetDataReductionProxyEventStore(); |
96 | 97 |
97 AwURLRequestContextGetter* GetAwURLRequestContext(); | 98 AwURLRequestContextGetter* GetAwURLRequestContext(); |
98 | 99 |
99 void CreateUserPrefServiceIfNecessary(); | 100 void CreateUserPrefServiceIfNecessary(); |
100 | 101 |
| 102 AwMessagePortService* GetMessagePortService(); |
| 103 |
| 104 |
101 // content::BrowserContext implementation. | 105 // content::BrowserContext implementation. |
102 scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( | 106 scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( |
103 const base::FilePath& partition_path) override; | 107 const base::FilePath& partition_path) override; |
104 virtual base::FilePath GetPath() const override; | 108 virtual base::FilePath GetPath() const override; |
105 virtual bool IsOffTheRecord() const override; | 109 virtual bool IsOffTheRecord() const override; |
106 virtual net::URLRequestContextGetter* GetRequestContext() override; | 110 virtual net::URLRequestContextGetter* GetRequestContext() override; |
107 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 111 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
108 int renderer_child_id) override; | 112 int renderer_child_id) override; |
109 virtual net::URLRequestContextGetter* GetMediaRequestContext() override; | 113 virtual net::URLRequestContextGetter* GetMediaRequestContext() override; |
110 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( | 114 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( |
(...skipping 22 matching lines...) Expand all Loading... |
133 static int legacy_cache_removal_delay_ms_; | 137 static int legacy_cache_removal_delay_ms_; |
134 | 138 |
135 // The file path where data for this context is persisted. | 139 // The file path where data for this context is persisted. |
136 base::FilePath context_storage_path_; | 140 base::FilePath context_storage_path_; |
137 | 141 |
138 JniDependencyFactory* native_factory_; | 142 JniDependencyFactory* native_factory_; |
139 scoped_refptr<net::CookieStore> cookie_store_; | 143 scoped_refptr<net::CookieStore> cookie_store_; |
140 scoped_refptr<AwURLRequestContextGetter> url_request_context_getter_; | 144 scoped_refptr<AwURLRequestContextGetter> url_request_context_getter_; |
141 scoped_refptr<AwQuotaManagerBridge> quota_manager_bridge_; | 145 scoped_refptr<AwQuotaManagerBridge> quota_manager_bridge_; |
142 scoped_ptr<AwFormDatabaseService> form_database_service_; | 146 scoped_ptr<AwFormDatabaseService> form_database_service_; |
| 147 scoped_ptr<AwMessagePortService> message_port_service_; |
143 | 148 |
144 AwDownloadManagerDelegate download_manager_delegate_; | 149 AwDownloadManagerDelegate download_manager_delegate_; |
145 | 150 |
146 scoped_ptr<visitedlink::VisitedLinkMaster> visitedlink_master_; | 151 scoped_ptr<visitedlink::VisitedLinkMaster> visitedlink_master_; |
147 scoped_ptr<content::ResourceContext> resource_context_; | 152 scoped_ptr<content::ResourceContext> resource_context_; |
148 | 153 |
149 scoped_ptr<PrefService> user_pref_service_; | 154 scoped_ptr<PrefService> user_pref_service_; |
150 | 155 |
151 scoped_ptr<data_reduction_proxy::DataReductionProxyConfigurator> | 156 scoped_ptr<data_reduction_proxy::DataReductionProxyConfigurator> |
152 data_reduction_proxy_configurator_; | 157 data_reduction_proxy_configurator_; |
153 scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs> | 158 scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs> |
154 data_reduction_proxy_statistics_; | 159 data_reduction_proxy_statistics_; |
155 scoped_ptr<data_reduction_proxy::DataReductionProxySettings> | 160 scoped_ptr<data_reduction_proxy::DataReductionProxySettings> |
156 data_reduction_proxy_settings_; | 161 data_reduction_proxy_settings_; |
157 scoped_ptr<data_reduction_proxy::DataReductionProxyEventStore> | 162 scoped_ptr<data_reduction_proxy::DataReductionProxyEventStore> |
158 data_reduction_proxy_event_store_; | 163 data_reduction_proxy_event_store_; |
159 scoped_ptr<AwSSLHostStateDelegate> ssl_host_state_delegate_; | 164 scoped_ptr<AwSSLHostStateDelegate> ssl_host_state_delegate_; |
160 | 165 |
161 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); | 166 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); |
162 }; | 167 }; |
163 | 168 |
164 } // namespace android_webview | 169 } // namespace android_webview |
165 | 170 |
166 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ | 171 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ |
OLD | NEW |