Chromium Code Reviews| 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_IO_DATA_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 70 class ExtensionThrottleManager; | 70 class ExtensionThrottleManager; |
| 71 class InfoMap; | 71 class InfoMap; |
| 72 } | 72 } |
| 73 | 73 |
| 74 namespace net { | 74 namespace net { |
| 75 class CertVerifier; | 75 class CertVerifier; |
| 76 class ChannelIDService; | 76 class ChannelIDService; |
| 77 class ClientCertStore; | 77 class ClientCertStore; |
| 78 class CookieStore; | 78 class CookieStore; |
| 79 class CTVerifier; | 79 class CTVerifier; |
| 80 class FtpTransactionFactory; | |
| 81 class HttpServerProperties; | 80 class HttpServerProperties; |
| 82 class HttpTransactionFactory; | 81 class HttpTransactionFactory; |
| 83 class ProxyConfigService; | 82 class ProxyConfigService; |
| 84 class ProxyService; | 83 class ProxyService; |
| 85 class ReportSender; | 84 class ReportSender; |
| 86 class SSLConfigService; | 85 class SSLConfigService; |
| 87 class TransportSecurityPersister; | 86 class TransportSecurityPersister; |
| 88 class TransportSecurityState; | 87 class TransportSecurityState; |
| 89 class URLRequestContextStorage; | 88 class URLRequestContextStorage; |
| 90 class URLRequestJobFactoryImpl; | 89 class URLRequestJobFactoryImpl; |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 355 // ensure it's not accidently used on the IO thread. Before using it on the | 354 // ensure it's not accidently used on the IO thread. Before using it on the |
| 356 // UI thread, call ProfileManager::IsValidProfile to ensure it's alive. | 355 // UI thread, call ProfileManager::IsValidProfile to ensure it's alive. |
| 357 void* profile; | 356 void* profile; |
| 358 }; | 357 }; |
| 359 | 358 |
| 360 explicit ProfileIOData(Profile::ProfileType profile_type); | 359 explicit ProfileIOData(Profile::ProfileType profile_type); |
| 361 | 360 |
| 362 void InitializeOnUIThread(Profile* profile); | 361 void InitializeOnUIThread(Profile* profile); |
| 363 void ApplyProfileParamsToContext(net::URLRequestContext* context) const; | 362 void ApplyProfileParamsToContext(net::URLRequestContext* context) const; |
| 364 | 363 |
| 364 // Does common setup of the URLRequestJobFactories. Adds default | |
| 365 // ProtocolHandlers to |job_factory|, adds URLRequestIntercetors in front of | |
|
eroman
2016/10/19 17:15:15
typo on interceptors
mmenke
2016/10/19 17:20:36
Done.
| |
| 366 // it as needed, and returns the result. | |
| 367 // | |
| 368 // |protocol_handler_interceptor is configured to intercept URLRequests | |
|
eroman
2016/10/19 17:15:15
missing close |
mmenke
2016/10/19 17:20:36
Done.
| |
| 369 // before all other URLRequestInterceptors. | |
| 370 // |host_resolver| is needed to set up the FtpProtocolHandler. | |
| 365 std::unique_ptr<net::URLRequestJobFactory> SetUpJobFactoryDefaults( | 371 std::unique_ptr<net::URLRequestJobFactory> SetUpJobFactoryDefaults( |
| 366 std::unique_ptr<net::URLRequestJobFactoryImpl> job_factory, | 372 std::unique_ptr<net::URLRequestJobFactoryImpl> job_factory, |
| 367 content::URLRequestInterceptorScopedVector request_interceptors, | 373 content::URLRequestInterceptorScopedVector request_interceptors, |
| 368 std::unique_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> | 374 std::unique_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> |
| 369 protocol_handler_interceptor, | 375 protocol_handler_interceptor, |
| 370 net::NetworkDelegate* network_delegate, | 376 net::NetworkDelegate* network_delegate, |
| 371 net::FtpTransactionFactory* ftp_transaction_factory) const; | 377 net::HostResolver* host_resolver) const; |
| 372 | 378 |
| 373 // Called when the Profile is destroyed. |context_getters| must include all | 379 // Called when the Profile is destroyed. |context_getters| must include all |
| 374 // URLRequestContextGetters that refer to the ProfileIOData's | 380 // URLRequestContextGetters that refer to the ProfileIOData's |
| 375 // URLRequestContexts. Triggers destruction of the ProfileIOData and shuts | 381 // URLRequestContexts. Triggers destruction of the ProfileIOData and shuts |
| 376 // down |context_getters| safely on the IO thread. | 382 // down |context_getters| safely on the IO thread. |
| 377 // TODO(mmenke): Passing all those URLRequestContextGetters around like this | 383 // TODO(mmenke): Passing all those URLRequestContextGetters around like this |
| 378 // is really silly. Can we do something cleaner? | 384 // is really silly. Can we do something cleaner? |
| 379 void ShutdownOnUIThread( | 385 void ShutdownOnUIThread( |
| 380 std::unique_ptr<ChromeURLRequestContextGetterVector> context_getters); | 386 std::unique_ptr<ChromeURLRequestContextGetterVector> context_getters); |
| 381 | 387 |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 624 mutable std::unique_ptr<certificate_transparency::TreeStateTracker> | 630 mutable std::unique_ptr<certificate_transparency::TreeStateTracker> |
| 625 ct_tree_tracker_; | 631 ct_tree_tracker_; |
| 626 mutable base::Closure ct_tree_tracker_unregistration_; | 632 mutable base::Closure ct_tree_tracker_unregistration_; |
| 627 | 633 |
| 628 const Profile::ProfileType profile_type_; | 634 const Profile::ProfileType profile_type_; |
| 629 | 635 |
| 630 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 636 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 631 }; | 637 }; |
| 632 | 638 |
| 633 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 639 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |