| 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" |
| 11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
| 17 #include "chrome/browser/api/prefs/pref_member.h" | 17 #include "chrome/browser/api/prefs/pref_member.h" |
| 18 #include "chrome/browser/io_thread.h" | 18 #include "chrome/browser/io_thread.h" |
| 19 #include "chrome/browser/net/chrome_url_request_context.h" | 19 #include "chrome/browser/net/chrome_url_request_context.h" |
| 20 #include "content/public/browser/resource_context.h" | 20 #include "content/public/browser/resource_context.h" |
| 21 #include "net/cookies/cookie_monster.h" | 21 #include "net/cookies/cookie_monster.h" |
| 22 #include "net/http/http_network_session.h" | 22 #include "net/http/http_network_session.h" |
| 23 #include "net/url_request/url_request_job_factory.h" | 23 #include "net/url_request/url_request_job_factory_impl.h" |
| 24 | 24 |
| 25 class CookieSettings; | 25 class CookieSettings; |
| 26 class DesktopNotificationService; | 26 class DesktopNotificationService; |
| 27 class ExtensionInfoMap; | 27 class ExtensionInfoMap; |
| 28 class HostContentSettingsMap; | 28 class HostContentSettingsMap; |
| 29 class Profile; | 29 class Profile; |
| 30 class ProtocolHandlerRegistry; | 30 class ProtocolHandlerRegistry; |
| 31 class TransportSecurityPersister; | 31 class TransportSecurityPersister; |
| 32 | 32 |
| 33 namespace chrome_browser_net { | 33 namespace chrome_browser_net { |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 }; | 217 }; |
| 218 | 218 |
| 219 explicit ProfileIOData(bool is_incognito); | 219 explicit ProfileIOData(bool is_incognito); |
| 220 | 220 |
| 221 static std::string GetSSLSessionCacheShard(); | 221 static std::string GetSSLSessionCacheShard(); |
| 222 | 222 |
| 223 void InitializeOnUIThread(Profile* profile); | 223 void InitializeOnUIThread(Profile* profile); |
| 224 void ApplyProfileParamsToContext(ChromeURLRequestContext* context) const; | 224 void ApplyProfileParamsToContext(ChromeURLRequestContext* context) const; |
| 225 | 225 |
| 226 void SetUpJobFactoryDefaults( | 226 void SetUpJobFactoryDefaults( |
| 227 net::URLRequestJobFactory* job_factory, | 227 net::URLRequestJobFactoryImpl* job_factory, |
| 228 scoped_ptr<net::URLRequestJobFactory::Interceptor> | 228 scoped_ptr<net::URLRequestJobFactory::Interceptor> |
| 229 protocol_handler_interceptor, | 229 protocol_handler_interceptor, |
| 230 net::NetworkDelegate* network_delegate, | 230 net::NetworkDelegate* network_delegate, |
| 231 net::FtpTransactionFactory* ftp_transaction_factory, | 231 net::FtpTransactionFactory* ftp_transaction_factory, |
| 232 net::FtpAuthCache* ftp_auth_cache) const; | 232 net::FtpAuthCache* ftp_auth_cache) const; |
| 233 | 233 |
| 234 // Lazy initializes the ProfileIOData object the first time a request context | 234 // Lazy initializes the ProfileIOData object the first time a request context |
| 235 // is requested. The lazy logic is implemented here. The actual initialization | 235 // is requested. The lazy logic is implemented here. The actual initialization |
| 236 // is done in LazyInitializeInternal(), implemented by subtypes. Static helper | 236 // is done in LazyInitializeInternal(), implemented by subtypes. Static helper |
| 237 // 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... |
| 429 | 429 |
| 430 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 430 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
| 431 bool initialized_on_UI_thread_; | 431 bool initialized_on_UI_thread_; |
| 432 | 432 |
| 433 bool is_incognito_; | 433 bool is_incognito_; |
| 434 | 434 |
| 435 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 435 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 436 }; | 436 }; |
| 437 | 437 |
| 438 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 438 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |