| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 namespace net { | 39 namespace net { |
| 40 class CookieStore; | 40 class CookieStore; |
| 41 class FraudulentCertificateReporter; | 41 class FraudulentCertificateReporter; |
| 42 class HttpTransactionFactory; | 42 class HttpTransactionFactory; |
| 43 class ServerBoundCertService; | 43 class ServerBoundCertService; |
| 44 class ProxyConfigService; | 44 class ProxyConfigService; |
| 45 class ProxyService; | 45 class ProxyService; |
| 46 class SSLConfigService; | 46 class SSLConfigService; |
| 47 class TransportSecurityState; | 47 class TransportSecurityState; |
| 48 class URLRequestJobFactoryImpl; |
| 48 } // namespace net | 49 } // namespace net |
| 49 | 50 |
| 50 namespace policy { | 51 namespace policy { |
| 51 class URLBlacklistManager; | 52 class URLBlacklistManager; |
| 52 } // namespace policy | 53 } // namespace policy |
| 53 | 54 |
| 54 // Conceptually speaking, the ProfileIOData represents data that lives on the IO | 55 // Conceptually speaking, the ProfileIOData represents data that lives on the IO |
| 55 // thread that is owned by a Profile, such as, but not limited to, network | 56 // thread that is owned by a Profile, such as, but not limited to, network |
| 56 // objects like CookieMonster, HttpTransactionFactory, etc. Profile owns | 57 // objects like CookieMonster, HttpTransactionFactory, etc. Profile owns |
| 57 // ProfileIOData, but will make sure to delete it on the IO thread (except | 58 // ProfileIOData, but will make sure to delete it on the IO thread (except |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 }; | 217 }; |
| 217 | 218 |
| 218 explicit ProfileIOData(bool is_incognito); | 219 explicit ProfileIOData(bool is_incognito); |
| 219 | 220 |
| 220 static std::string GetSSLSessionCacheShard(); | 221 static std::string GetSSLSessionCacheShard(); |
| 221 | 222 |
| 222 void InitializeOnUIThread(Profile* profile); | 223 void InitializeOnUIThread(Profile* profile); |
| 223 void ApplyProfileParamsToContext(ChromeURLRequestContext* context) const; | 224 void ApplyProfileParamsToContext(ChromeURLRequestContext* context) const; |
| 224 | 225 |
| 225 void SetUpJobFactoryDefaults( | 226 void SetUpJobFactoryDefaults( |
| 226 net::URLRequestJobFactory* job_factory, | 227 net::URLRequestJobFactoryImpl* job_factory, |
| 227 scoped_ptr<net::URLRequestJobFactory::Interceptor> | 228 scoped_ptr<net::URLRequestJobFactory::Interceptor> |
| 228 protocol_handler_interceptor, | 229 protocol_handler_interceptor, |
| 229 net::NetworkDelegate* network_delegate, | 230 net::NetworkDelegate* network_delegate, |
| 230 net::FtpTransactionFactory* ftp_transaction_factory, | 231 net::FtpTransactionFactory* ftp_transaction_factory, |
| 231 net::FtpAuthCache* ftp_auth_cache) const; | 232 net::FtpAuthCache* ftp_auth_cache) const; |
| 232 | 233 |
| 233 // Lazy initializes the ProfileIOData object the first time a request context | 234 // Lazy initializes the ProfileIOData object the first time a request context |
| 234 // is requested. The lazy logic is implemented here. The actual initialization | 235 // is requested. The lazy logic is implemented here. The actual initialization |
| 235 // is done in LazyInitializeInternal(), implemented by subtypes. Static helper | 236 // is done in LazyInitializeInternal(), implemented by subtypes. Static helper |
| 236 // functions have been provided to assist in common operations. | 237 // functions have been provided to assist in common operations. |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 | 429 |
| 429 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 430 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
| 430 bool initialized_on_UI_thread_; | 431 bool initialized_on_UI_thread_; |
| 431 | 432 |
| 432 bool is_incognito_; | 433 bool is_incognito_; |
| 433 | 434 |
| 434 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 435 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 435 }; | 436 }; |
| 436 | 437 |
| 437 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 438 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |