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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
94 data_reduction_proxy::DataReductionProxyEventStore* | 95 data_reduction_proxy::DataReductionProxyEventStore* |
95 GetDataReductionProxyEventStore(); | 96 GetDataReductionProxyEventStore(); |
96 | 97 |
97 data_reduction_proxy::DataReductionProxyConfigurator* | 98 data_reduction_proxy::DataReductionProxyConfigurator* |
98 GetDataReductionProxyConfigurator(); | 99 GetDataReductionProxyConfigurator(); |
99 | 100 |
100 AwURLRequestContextGetter* GetAwURLRequestContext(); | 101 AwURLRequestContextGetter* GetAwURLRequestContext(); |
101 | 102 |
102 void CreateUserPrefServiceIfNecessary(); | 103 void CreateUserPrefServiceIfNecessary(); |
103 | 104 |
105 AwMessagePortService* GetMessagePortService(); | |
106 | |
107 | |
mnaganov (inactive)
2015/01/13 10:37:50
nit: extra blank line
sgurun-gerrit only
2015/01/14 23:53:13
Done.
| |
104 // content::BrowserContext implementation. | 108 // content::BrowserContext implementation. |
105 scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( | 109 scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( |
106 const base::FilePath& partition_path) override; | 110 const base::FilePath& partition_path) override; |
107 virtual base::FilePath GetPath() const override; | 111 virtual base::FilePath GetPath() const override; |
108 virtual bool IsOffTheRecord() const override; | 112 virtual bool IsOffTheRecord() const override; |
109 virtual net::URLRequestContextGetter* GetRequestContext() override; | 113 virtual net::URLRequestContextGetter* GetRequestContext() override; |
110 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 114 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
111 int renderer_child_id) override; | 115 int renderer_child_id) override; |
112 virtual net::URLRequestContextGetter* GetMediaRequestContext() override; | 116 virtual net::URLRequestContextGetter* GetMediaRequestContext() override; |
113 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( | 117 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( |
(...skipping 22 matching lines...) Expand all Loading... | |
136 static int legacy_cache_removal_delay_ms_; | 140 static int legacy_cache_removal_delay_ms_; |
137 | 141 |
138 // The file path where data for this context is persisted. | 142 // The file path where data for this context is persisted. |
139 base::FilePath context_storage_path_; | 143 base::FilePath context_storage_path_; |
140 | 144 |
141 JniDependencyFactory* native_factory_; | 145 JniDependencyFactory* native_factory_; |
142 scoped_refptr<net::CookieStore> cookie_store_; | 146 scoped_refptr<net::CookieStore> cookie_store_; |
143 scoped_refptr<AwURLRequestContextGetter> url_request_context_getter_; | 147 scoped_refptr<AwURLRequestContextGetter> url_request_context_getter_; |
144 scoped_refptr<AwQuotaManagerBridge> quota_manager_bridge_; | 148 scoped_refptr<AwQuotaManagerBridge> quota_manager_bridge_; |
145 scoped_ptr<AwFormDatabaseService> form_database_service_; | 149 scoped_ptr<AwFormDatabaseService> form_database_service_; |
150 scoped_ptr<AwMessagePortService> message_port_service_; | |
146 | 151 |
147 AwDownloadManagerDelegate download_manager_delegate_; | 152 AwDownloadManagerDelegate download_manager_delegate_; |
148 | 153 |
149 scoped_ptr<visitedlink::VisitedLinkMaster> visitedlink_master_; | 154 scoped_ptr<visitedlink::VisitedLinkMaster> visitedlink_master_; |
150 scoped_ptr<content::ResourceContext> resource_context_; | 155 scoped_ptr<content::ResourceContext> resource_context_; |
151 | 156 |
152 scoped_ptr<PrefService> user_pref_service_; | 157 scoped_ptr<PrefService> user_pref_service_; |
153 | 158 |
154 scoped_ptr<data_reduction_proxy::DataReductionProxyConfigurator> | 159 scoped_ptr<data_reduction_proxy::DataReductionProxyConfigurator> |
155 data_reduction_proxy_configurator_; | 160 data_reduction_proxy_configurator_; |
156 scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs> | 161 scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs> |
157 data_reduction_proxy_statistics_; | 162 data_reduction_proxy_statistics_; |
158 scoped_ptr<data_reduction_proxy::DataReductionProxySettings> | 163 scoped_ptr<data_reduction_proxy::DataReductionProxySettings> |
159 data_reduction_proxy_settings_; | 164 data_reduction_proxy_settings_; |
160 scoped_ptr<data_reduction_proxy::DataReductionProxyEventStore> | 165 scoped_ptr<data_reduction_proxy::DataReductionProxyEventStore> |
161 data_reduction_proxy_event_store_; | 166 data_reduction_proxy_event_store_; |
162 scoped_ptr<AwSSLHostStateDelegate> ssl_host_state_delegate_; | 167 scoped_ptr<AwSSLHostStateDelegate> ssl_host_state_delegate_; |
163 | 168 |
164 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); | 169 DISALLOW_COPY_AND_ASSIGN(AwBrowserContext); |
165 }; | 170 }; |
166 | 171 |
167 } // namespace android_webview | 172 } // namespace android_webview |
168 | 173 |
169 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ | 174 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_CONTEXT_H_ |
OLD | NEW |