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 CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy; | 165 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy; |
166 }; | 166 }; |
167 | 167 |
168 ProfileImplIOData(); | 168 ProfileImplIOData(); |
169 ~ProfileImplIOData() override; | 169 ~ProfileImplIOData() override; |
170 | 170 |
171 void InitializeInternal( | 171 void InitializeInternal( |
172 scoped_ptr<ChromeNetworkDelegate> chrome_network_delegate, | 172 scoped_ptr<ChromeNetworkDelegate> chrome_network_delegate, |
173 ProfileParams* profile_params, | 173 ProfileParams* profile_params, |
174 content::ProtocolHandlerMap* protocol_handlers, | 174 content::ProtocolHandlerMap* protocol_handlers, |
175 content::URLRequestInterceptorScopedVector | 175 content::URLRequestInterceptorScopedVector request_interceptors, |
176 request_interceptors) const override; | 176 net::URLRequestContextBuilder* context_builder) const override; |
177 void InitializeExtensionsRequestContext( | 177 void InitializeExtensionsRequestContext( |
178 ProfileParams* profile_params) const override; | 178 ProfileParams* profile_params) const override; |
179 net::URLRequestContext* InitializeAppRequestContext( | 179 net::URLRequestContext* InitializeAppRequestContext( |
180 net::URLRequestContext* main_context, | 180 net::URLRequestContext* main_context, |
181 const StoragePartitionDescriptor& partition_descriptor, | 181 const StoragePartitionDescriptor& partition_descriptor, |
182 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> | 182 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> |
183 protocol_handler_interceptor, | 183 protocol_handler_interceptor, |
184 content::ProtocolHandlerMap* protocol_handlers, | 184 content::ProtocolHandlerMap* protocol_handlers, |
185 content::URLRequestInterceptorScopedVector request_interceptors) | 185 content::URLRequestInterceptorScopedVector request_interceptors) |
186 const override; | 186 const override; |
187 net::URLRequestContext* InitializeMediaRequestContext( | 187 net::URLRequestContext* InitializeMediaRequestContext( |
188 net::URLRequestContext* original_context, | 188 net::URLRequestContext* original_context, |
189 const StoragePartitionDescriptor& partition_descriptor) const override; | 189 const StoragePartitionDescriptor& partition_descriptor) const override; |
190 net::URLRequestContext* AcquireMediaRequestContext() const override; | 190 net::URLRequestContext* AcquireMediaRequestContext() const override; |
191 net::URLRequestContext* AcquireIsolatedAppRequestContext( | 191 net::URLRequestContext* AcquireIsolatedAppRequestContext( |
192 net::URLRequestContext* main_context, | 192 net::URLRequestContext* main_context, |
193 const StoragePartitionDescriptor& partition_descriptor, | 193 const StoragePartitionDescriptor& partition_descriptor, |
194 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> | 194 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> |
195 protocol_handler_interceptor, | 195 protocol_handler_interceptor, |
196 content::ProtocolHandlerMap* protocol_handlers, | 196 content::ProtocolHandlerMap* protocol_handlers, |
197 content::URLRequestInterceptorScopedVector request_interceptors) | 197 content::URLRequestInterceptorScopedVector request_interceptors) |
198 const override; | 198 const override; |
199 net::URLRequestContext* AcquireIsolatedMediaRequestContext( | 199 net::URLRequestContext* AcquireIsolatedMediaRequestContext( |
200 net::URLRequestContext* app_context, | 200 net::URLRequestContext* app_context, |
201 const StoragePartitionDescriptor& partition_descriptor) const override; | 201 const StoragePartitionDescriptor& partition_descriptor) const override; |
202 | 202 |
| 203 void InitPostContextSetup( |
| 204 ChromeNetworkDelegate* chrome_network_delegate) const override; |
| 205 |
203 // Deletes all network related data since |time|. It deletes transport | 206 // Deletes all network related data since |time|. It deletes transport |
204 // security state since |time| and also deletes HttpServerProperties data. | 207 // security state since |time| and also deletes HttpServerProperties data. |
205 // Works asynchronously, however if the |completion| callback is non-null, | 208 // Works asynchronously, however if the |completion| callback is non-null, |
206 // it will be posted on the UI thread once the removal process completes. | 209 // it will be posted on the UI thread once the removal process completes. |
207 void ClearNetworkingHistorySinceOnIOThread(base::Time time, | 210 void ClearNetworkingHistorySinceOnIOThread(base::Time time, |
208 const base::Closure& completion); | 211 const base::Closure& completion); |
209 | 212 |
210 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyNetworkDelegate> | |
211 network_delegate_; | |
212 | |
213 // Lazy initialization params. | 213 // Lazy initialization params. |
214 mutable scoped_ptr<LazyParams> lazy_params_; | 214 mutable scoped_ptr<LazyParams> lazy_params_; |
215 | 215 |
216 mutable scoped_refptr<JsonPrefStore> network_json_store_; | 216 mutable scoped_refptr<JsonPrefStore> network_json_store_; |
217 | 217 |
218 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; | |
219 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_; | 218 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_; |
220 | 219 |
221 // Same as |ProfileIOData::http_server_properties_|, owned there to maintain | 220 // Same as |ProfileIOData::http_server_properties_|, owned there to maintain |
222 // destruction ordering. | 221 // destruction ordering. |
223 mutable net::HttpServerPropertiesManager* http_server_properties_manager_; | 222 mutable net::HttpServerPropertiesManager* http_server_properties_manager_; |
224 | 223 |
225 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_; | 224 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_; |
226 | 225 |
227 mutable scoped_ptr<net::URLRequestContext> media_request_context_; | 226 mutable scoped_ptr<net::URLRequestContext> media_request_context_; |
228 | 227 |
229 mutable scoped_ptr<net::URLRequestJobFactory> main_job_factory_; | |
230 mutable scoped_ptr<net::URLRequestJobFactory> extensions_job_factory_; | 228 mutable scoped_ptr<net::URLRequestJobFactory> extensions_job_factory_; |
231 | 229 |
232 mutable scoped_ptr<domain_reliability::DomainReliabilityMonitor> | 230 mutable scoped_ptr<domain_reliability::DomainReliabilityMonitor> |
233 domain_reliability_monitor_; | 231 domain_reliability_monitor_; |
234 | 232 |
235 mutable scoped_ptr<net::SdchManager> sdch_manager_; | 233 mutable scoped_ptr<net::SdchManager> sdch_manager_; |
236 mutable scoped_ptr<net::SdchOwner> sdch_policy_; | 234 mutable scoped_ptr<net::SdchOwner> sdch_policy_; |
237 | 235 |
238 // Parameters needed for isolated apps. | 236 // Parameters needed for isolated apps. |
239 base::FilePath profile_path_; | 237 base::FilePath profile_path_; |
240 int app_cache_max_size_; | 238 int app_cache_max_size_; |
241 int app_media_cache_max_size_; | 239 int app_media_cache_max_size_; |
242 | 240 |
243 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 241 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
244 }; | 242 }; |
245 | 243 |
246 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 244 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
OLD | NEW |