| 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 "chrome/browser/profiles/storage_partition_descriptor.h" | 20 #include "chrome/browser/profiles/storage_partition_descriptor.h" |
| 21 #include "content/public/browser/resource_context.h" | 21 #include "content/public/browser/resource_context.h" |
| 22 #include "net/cookies/cookie_monster.h" | 22 #include "net/cookies/cookie_monster.h" |
| 23 #include "net/http/http_network_session.h" | 23 #include "net/http/http_network_session.h" |
| 24 #include "net/url_request/url_request_job_factory.h" | 24 #include "net/url_request/url_request_job_factory.h" |
| 25 | 25 |
| 26 class ChromeHttpUserAgentSettings; |
| 26 class CookieSettings; | 27 class CookieSettings; |
| 27 class DesktopNotificationService; | 28 class DesktopNotificationService; |
| 28 class ExtensionInfoMap; | 29 class ExtensionInfoMap; |
| 29 class HostContentSettingsMap; | 30 class HostContentSettingsMap; |
| 30 class Profile; | 31 class Profile; |
| 31 class ProtocolHandlerRegistry; | 32 class ProtocolHandlerRegistry; |
| 32 class TransportSecurityPersister; | 33 class TransportSecurityPersister; |
| 33 | 34 |
| 34 namespace chrome_browser_net { | 35 namespace chrome_browser_net { |
| 35 class LoadTimeStats; | 36 class LoadTimeStats; |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 scoped_ptr<net::URLRequestJobFactory> job_factory_; | 180 scoped_ptr<net::URLRequestJobFactory> job_factory_; |
| 180 }; | 181 }; |
| 181 | 182 |
| 182 // Created on the UI thread, read on the IO thread during ProfileIOData lazy | 183 // Created on the UI thread, read on the IO thread during ProfileIOData lazy |
| 183 // initialization. | 184 // initialization. |
| 184 struct ProfileParams { | 185 struct ProfileParams { |
| 185 ProfileParams(); | 186 ProfileParams(); |
| 186 ~ProfileParams(); | 187 ~ProfileParams(); |
| 187 | 188 |
| 188 FilePath path; | 189 FilePath path; |
| 189 std::string accept_language; | |
| 190 std::string accept_charset; | |
| 191 IOThread* io_thread; | 190 IOThread* io_thread; |
| 192 scoped_refptr<CookieSettings> cookie_settings; | 191 scoped_refptr<CookieSettings> cookie_settings; |
| 193 scoped_refptr<net::SSLConfigService> ssl_config_service; | 192 scoped_refptr<net::SSLConfigService> ssl_config_service; |
| 194 scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate; | 193 scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate; |
| 195 scoped_refptr<ExtensionInfoMap> extension_info_map; | 194 scoped_refptr<ExtensionInfoMap> extension_info_map; |
| 196 scoped_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver> | 195 scoped_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver> |
| 197 resource_prefetch_predictor_observer_; | 196 resource_prefetch_predictor_observer_; |
| 198 | 197 |
| 199 #if defined(ENABLE_NOTIFICATIONS) | 198 #if defined(ENABLE_NOTIFICATIONS) |
| 200 DesktopNotificationService* notification_service; | 199 DesktopNotificationService* notification_service; |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 mutable URLRequestContextMap app_request_context_map_; | 420 mutable URLRequestContextMap app_request_context_map_; |
| 422 mutable URLRequestContextMap isolated_media_request_context_map_; | 421 mutable URLRequestContextMap isolated_media_request_context_map_; |
| 423 | 422 |
| 424 mutable scoped_ptr<ResourceContext> resource_context_; | 423 mutable scoped_ptr<ResourceContext> resource_context_; |
| 425 | 424 |
| 426 mutable scoped_refptr<CookieSettings> cookie_settings_; | 425 mutable scoped_refptr<CookieSettings> cookie_settings_; |
| 427 | 426 |
| 428 mutable scoped_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver> | 427 mutable scoped_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver> |
| 429 resource_prefetch_predictor_observer_; | 428 resource_prefetch_predictor_observer_; |
| 430 | 429 |
| 430 mutable scoped_ptr<ChromeHttpUserAgentSettings> |
| 431 chrome_http_user_agent_settings_; |
| 432 |
| 431 mutable chrome_browser_net::LoadTimeStats* load_time_stats_; | 433 mutable chrome_browser_net::LoadTimeStats* load_time_stats_; |
| 432 | 434 |
| 433 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 435 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
| 434 bool initialized_on_UI_thread_; | 436 bool initialized_on_UI_thread_; |
| 435 | 437 |
| 436 bool is_incognito_; | 438 bool is_incognito_; |
| 437 | 439 |
| 438 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 440 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 439 }; | 441 }; |
| 440 | 442 |
| 441 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 443 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |