| 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 18 matching lines...) Expand all Loading... |
| 29 class ChromeHttpUserAgentSettings; | 29 class ChromeHttpUserAgentSettings; |
| 30 class ChromeNetworkDelegate; | 30 class ChromeNetworkDelegate; |
| 31 class CookieSettings; | 31 class CookieSettings; |
| 32 class HostContentSettingsMap; | 32 class HostContentSettingsMap; |
| 33 class ManagedModeURLFilter; | 33 class ManagedModeURLFilter; |
| 34 class MediaDeviceIDSalt; | 34 class MediaDeviceIDSalt; |
| 35 class Profile; | 35 class Profile; |
| 36 class ProtocolHandlerRegistry; | 36 class ProtocolHandlerRegistry; |
| 37 class SigninNamesOnIOThread; | 37 class SigninNamesOnIOThread; |
| 38 | 38 |
| 39 namespace chrome_browser_net { | |
| 40 class ResourcePrefetchPredictorObserver; | |
| 41 } | |
| 42 | |
| 43 namespace extensions { | 39 namespace extensions { |
| 44 class InfoMap; | 40 class InfoMap; |
| 45 } | 41 } |
| 46 | 42 |
| 47 namespace net { | 43 namespace net { |
| 48 class CookieStore; | 44 class CookieStore; |
| 49 class FraudulentCertificateReporter; | 45 class FraudulentCertificateReporter; |
| 50 class FtpTransactionFactory; | 46 class FtpTransactionFactory; |
| 51 class HttpServerProperties; | 47 class HttpServerProperties; |
| 52 class HttpTransactionFactory; | 48 class HttpTransactionFactory; |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 #if defined(OS_CHROMEOS) | 180 #if defined(OS_CHROMEOS) |
| 185 std::string username_hash() const { | 181 std::string username_hash() const { |
| 186 return username_hash_; | 182 return username_hash_; |
| 187 } | 183 } |
| 188 #endif | 184 #endif |
| 189 | 185 |
| 190 bool is_incognito() const { | 186 bool is_incognito() const { |
| 191 return is_incognito_; | 187 return is_incognito_; |
| 192 } | 188 } |
| 193 | 189 |
| 194 chrome_browser_net::ResourcePrefetchPredictorObserver* | |
| 195 resource_prefetch_predictor_observer() const { | |
| 196 return resource_prefetch_predictor_observer_.get(); | |
| 197 } | |
| 198 | |
| 199 #if defined(ENABLE_CONFIGURATION_POLICY) | 190 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 200 policy::PolicyHeaderIOHelper* policy_header_helper() const { | 191 policy::PolicyHeaderIOHelper* policy_header_helper() const { |
| 201 return policy_header_helper_.get(); | 192 return policy_header_helper_.get(); |
| 202 } | 193 } |
| 203 #endif | 194 #endif |
| 204 | 195 |
| 205 #if defined(ENABLE_MANAGED_USERS) | 196 #if defined(ENABLE_MANAGED_USERS) |
| 206 const ManagedModeURLFilter* managed_mode_url_filter() const { | 197 const ManagedModeURLFilter* managed_mode_url_filter() const { |
| 207 return managed_mode_url_filter_.get(); | 198 return managed_mode_url_filter_.get(); |
| 208 } | 199 } |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 ProfileParams(); | 249 ProfileParams(); |
| 259 ~ProfileParams(); | 250 ~ProfileParams(); |
| 260 | 251 |
| 261 base::FilePath path; | 252 base::FilePath path; |
| 262 IOThread* io_thread; | 253 IOThread* io_thread; |
| 263 scoped_refptr<CookieSettings> cookie_settings; | 254 scoped_refptr<CookieSettings> cookie_settings; |
| 264 scoped_refptr<HostContentSettingsMap> host_content_settings_map; | 255 scoped_refptr<HostContentSettingsMap> host_content_settings_map; |
| 265 scoped_refptr<net::SSLConfigService> ssl_config_service; | 256 scoped_refptr<net::SSLConfigService> ssl_config_service; |
| 266 scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate; | 257 scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate; |
| 267 scoped_refptr<extensions::InfoMap> extension_info_map; | 258 scoped_refptr<extensions::InfoMap> extension_info_map; |
| 268 scoped_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver> | |
| 269 resource_prefetch_predictor_observer_; | |
| 270 | 259 |
| 271 // This pointer exists only as a means of conveying a url job factory | 260 // This pointer exists only as a means of conveying a url job factory |
| 272 // pointer from the protocol handler registry on the UI thread to the | 261 // pointer from the protocol handler registry on the UI thread to the |
| 273 // the URLRequestContext on the IO thread. The consumer MUST take | 262 // the URLRequestContext on the IO thread. The consumer MUST take |
| 274 // ownership of the object by calling release() on this pointer. | 263 // ownership of the object by calling release() on this pointer. |
| 275 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> | 264 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> |
| 276 protocol_handler_interceptor; | 265 protocol_handler_interceptor; |
| 277 | 266 |
| 278 // We need to initialize the ProxyConfigService from the UI thread | 267 // We need to initialize the ProxyConfigService from the UI thread |
| 279 // because on linux it relies on initializing things through gconf, | 268 // because on linux it relies on initializing things through gconf, |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 // One URLRequestContext per isolated app for main and media requests. | 518 // One URLRequestContext per isolated app for main and media requests. |
| 530 mutable URLRequestContextMap app_request_context_map_; | 519 mutable URLRequestContextMap app_request_context_map_; |
| 531 mutable URLRequestContextMap isolated_media_request_context_map_; | 520 mutable URLRequestContextMap isolated_media_request_context_map_; |
| 532 | 521 |
| 533 mutable scoped_ptr<ResourceContext> resource_context_; | 522 mutable scoped_ptr<ResourceContext> resource_context_; |
| 534 | 523 |
| 535 mutable scoped_refptr<CookieSettings> cookie_settings_; | 524 mutable scoped_refptr<CookieSettings> cookie_settings_; |
| 536 | 525 |
| 537 mutable scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 526 mutable scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
| 538 | 527 |
| 539 mutable scoped_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver> | |
| 540 resource_prefetch_predictor_observer_; | |
| 541 | |
| 542 mutable scoped_ptr<ChromeHttpUserAgentSettings> | 528 mutable scoped_ptr<ChromeHttpUserAgentSettings> |
| 543 chrome_http_user_agent_settings_; | 529 chrome_http_user_agent_settings_; |
| 544 | 530 |
| 545 #if defined(ENABLE_MANAGED_USERS) | 531 #if defined(ENABLE_MANAGED_USERS) |
| 546 mutable scoped_refptr<const ManagedModeURLFilter> managed_mode_url_filter_; | 532 mutable scoped_refptr<const ManagedModeURLFilter> managed_mode_url_filter_; |
| 547 #endif | 533 #endif |
| 548 | 534 |
| 549 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 535 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
| 550 bool initialized_on_UI_thread_; | 536 bool initialized_on_UI_thread_; |
| 551 | 537 |
| 552 bool is_incognito_; | 538 bool is_incognito_; |
| 553 | 539 |
| 554 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 540 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 555 }; | 541 }; |
| 556 | 542 |
| 557 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 543 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |