| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 class ProxyConfigService; | 55 class ProxyConfigService; |
| 56 class ProxyService; | 56 class ProxyService; |
| 57 class SSLConfigService; | 57 class SSLConfigService; |
| 58 class TransportSecurityPersister; | 58 class TransportSecurityPersister; |
| 59 class TransportSecurityState; | 59 class TransportSecurityState; |
| 60 class URLRequestJobFactoryImpl; | 60 class URLRequestJobFactoryImpl; |
| 61 } // namespace net | 61 } // namespace net |
| 62 | 62 |
| 63 namespace policy { | 63 namespace policy { |
| 64 class PolicyCertVerifier; | 64 class PolicyCertVerifier; |
| 65 class PolicyHeaderIOHelper; |
| 65 class URLBlacklistManager; | 66 class URLBlacklistManager; |
| 66 } // namespace policy | 67 } // namespace policy |
| 67 | 68 |
| 68 // Conceptually speaking, the ProfileIOData represents data that lives on the IO | 69 // Conceptually speaking, the ProfileIOData represents data that lives on the IO |
| 69 // thread that is owned by a Profile, such as, but not limited to, network | 70 // thread that is owned by a Profile, such as, but not limited to, network |
| 70 // objects like CookieMonster, HttpTransactionFactory, etc. Profile owns | 71 // objects like CookieMonster, HttpTransactionFactory, etc. Profile owns |
| 71 // ProfileIOData, but will make sure to delete it on the IO thread (except | 72 // ProfileIOData, but will make sure to delete it on the IO thread (except |
| 72 // possibly in unit tests where there is no IO thread). | 73 // possibly in unit tests where there is no IO thread). |
| 73 class ProfileIOData { | 74 class ProfileIOData { |
| 74 public: | 75 public: |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 | 186 |
| 186 bool is_incognito() const { | 187 bool is_incognito() const { |
| 187 return is_incognito_; | 188 return is_incognito_; |
| 188 } | 189 } |
| 189 | 190 |
| 190 chrome_browser_net::ResourcePrefetchPredictorObserver* | 191 chrome_browser_net::ResourcePrefetchPredictorObserver* |
| 191 resource_prefetch_predictor_observer() const { | 192 resource_prefetch_predictor_observer() const { |
| 192 return resource_prefetch_predictor_observer_.get(); | 193 return resource_prefetch_predictor_observer_.get(); |
| 193 } | 194 } |
| 194 | 195 |
| 196 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 197 policy::PolicyHeaderIOHelper* policy_header_helper() const { |
| 198 return policy_header_helper_.get(); |
| 199 } |
| 200 #endif |
| 201 |
| 195 #if defined(ENABLE_MANAGED_USERS) | 202 #if defined(ENABLE_MANAGED_USERS) |
| 196 const ManagedModeURLFilter* managed_mode_url_filter() const { | 203 const ManagedModeURLFilter* managed_mode_url_filter() const { |
| 197 return managed_mode_url_filter_.get(); | 204 return managed_mode_url_filter_.get(); |
| 198 } | 205 } |
| 199 #endif | 206 #endif |
| 200 | 207 |
| 201 // Initialize the member needed to track the metrics enabled state. This is | 208 // Initialize the member needed to track the metrics enabled state. This is |
| 202 // only to be called on the UI thread. | 209 // only to be called on the UI thread. |
| 203 void InitializeMetricsEnabledStateOnUIThread(); | 210 void InitializeMetricsEnabledStateOnUIThread(); |
| 204 | 211 |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 // we need to make one available based on the platform. | 492 // we need to make one available based on the platform. |
| 486 #if defined(OS_CHROMEOS) | 493 #if defined(OS_CHROMEOS) |
| 487 bool enable_metrics_; | 494 bool enable_metrics_; |
| 488 #else | 495 #else |
| 489 BooleanPrefMember enable_metrics_; | 496 BooleanPrefMember enable_metrics_; |
| 490 #endif | 497 #endif |
| 491 | 498 |
| 492 // Pointed to by NetworkDelegate. | 499 // Pointed to by NetworkDelegate. |
| 493 mutable scoped_ptr<policy::URLBlacklistManager> url_blacklist_manager_; | 500 mutable scoped_ptr<policy::URLBlacklistManager> url_blacklist_manager_; |
| 494 | 501 |
| 502 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 503 mutable scoped_ptr<policy::PolicyHeaderIOHelper> policy_header_helper_; |
| 504 #endif |
| 505 |
| 495 // Pointed to by URLRequestContext. | 506 // Pointed to by URLRequestContext. |
| 496 mutable scoped_refptr<extensions::InfoMap> extension_info_map_; | 507 mutable scoped_refptr<extensions::InfoMap> extension_info_map_; |
| 497 mutable scoped_ptr<net::ServerBoundCertService> server_bound_cert_service_; | 508 mutable scoped_ptr<net::ServerBoundCertService> server_bound_cert_service_; |
| 498 mutable scoped_ptr<ChromeNetworkDelegate> network_delegate_; | 509 mutable scoped_ptr<ChromeNetworkDelegate> network_delegate_; |
| 499 mutable scoped_ptr<net::FraudulentCertificateReporter> | 510 mutable scoped_ptr<net::FraudulentCertificateReporter> |
| 500 fraudulent_certificate_reporter_; | 511 fraudulent_certificate_reporter_; |
| 501 mutable scoped_ptr<net::ProxyService> proxy_service_; | 512 mutable scoped_ptr<net::ProxyService> proxy_service_; |
| 502 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; | 513 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; |
| 503 mutable scoped_ptr<net::HttpServerProperties> | 514 mutable scoped_ptr<net::HttpServerProperties> |
| 504 http_server_properties_; | 515 http_server_properties_; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 | 549 |
| 539 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 550 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
| 540 bool initialized_on_UI_thread_; | 551 bool initialized_on_UI_thread_; |
| 541 | 552 |
| 542 bool is_incognito_; | 553 bool is_incognito_; |
| 543 | 554 |
| 544 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 555 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 545 }; | 556 }; |
| 546 | 557 |
| 547 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 558 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |