| 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 void* profile; | 234 void* profile; |
| 235 }; | 235 }; |
| 236 | 236 |
| 237 explicit ProfileIOData(bool is_incognito); | 237 explicit ProfileIOData(bool is_incognito); |
| 238 | 238 |
| 239 static std::string GetSSLSessionCacheShard(); | 239 static std::string GetSSLSessionCacheShard(); |
| 240 | 240 |
| 241 void InitializeOnUIThread(Profile* profile); | 241 void InitializeOnUIThread(Profile* profile); |
| 242 void ApplyProfileParamsToContext(ChromeURLRequestContext* context) const; | 242 void ApplyProfileParamsToContext(ChromeURLRequestContext* context) const; |
| 243 | 243 |
| 244 void SetUpJobFactoryDefaults( | 244 scoped_ptr<net::URLRequestJobFactory> SetUpJobFactoryDefaults( |
| 245 net::URLRequestJobFactoryImpl* job_factory, | 245 scoped_ptr<net::URLRequestJobFactoryImpl> job_factory, |
| 246 scoped_ptr<net::URLRequestJobFactory::Interceptor> | 246 scoped_ptr<net::URLRequestJobFactory::Interceptor> |
| 247 protocol_handler_interceptor, | 247 protocol_handler_interceptor, |
| 248 net::NetworkDelegate* network_delegate, | 248 net::NetworkDelegate* network_delegate, |
| 249 net::FtpTransactionFactory* ftp_transaction_factory, | 249 net::FtpTransactionFactory* ftp_transaction_factory, |
| 250 net::FtpAuthCache* ftp_auth_cache) const; | 250 net::FtpAuthCache* ftp_auth_cache) const; |
| 251 | 251 |
| 252 // Lazy initializes the ProfileIOData object the first time a request context | 252 // Lazy initializes the ProfileIOData object the first time a request context |
| 253 // is requested. The lazy logic is implemented here. The actual initialization | 253 // is requested. The lazy logic is implemented here. The actual initialization |
| 254 // is done in LazyInitializeInternal(), implemented by subtypes. Static helper | 254 // is done in LazyInitializeInternal(), implemented by subtypes. Static helper |
| 255 // functions have been provided to assist in common operations. | 255 // functions have been provided to assist in common operations. |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 | 470 |
| 471 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 471 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
| 472 bool initialized_on_UI_thread_; | 472 bool initialized_on_UI_thread_; |
| 473 | 473 |
| 474 bool is_incognito_; | 474 bool is_incognito_; |
| 475 | 475 |
| 476 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 476 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 477 }; | 477 }; |
| 478 | 478 |
| 479 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 479 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |