Chromium Code Reviews| 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 policy::PolicyHeaderIOHelper* policy_header_helper() const { | |
| 197 return policy_header_helper_.get(); | |
| 198 } | |
| 199 | |
| 195 #if defined(ENABLE_MANAGED_USERS) | 200 #if defined(ENABLE_MANAGED_USERS) |
| 196 const ManagedModeURLFilter* managed_mode_url_filter() const { | 201 const ManagedModeURLFilter* managed_mode_url_filter() const { |
| 197 return managed_mode_url_filter_.get(); | 202 return managed_mode_url_filter_.get(); |
| 198 } | 203 } |
| 199 #endif | 204 #endif |
| 200 | 205 |
| 201 // Initialize the member needed to track the metrics enabled state. This is | 206 // Initialize the member needed to track the metrics enabled state. This is |
| 202 // only to be called on the UI thread. | 207 // only to be called on the UI thread. |
| 203 void InitializeMetricsEnabledStateOnUIThread(); | 208 void InitializeMetricsEnabledStateOnUIThread(); |
| 204 | 209 |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 485 // we need to make one available based on the platform. | 490 // we need to make one available based on the platform. |
| 486 #if defined(OS_CHROMEOS) | 491 #if defined(OS_CHROMEOS) |
| 487 bool enable_metrics_; | 492 bool enable_metrics_; |
| 488 #else | 493 #else |
| 489 BooleanPrefMember enable_metrics_; | 494 BooleanPrefMember enable_metrics_; |
| 490 #endif | 495 #endif |
| 491 | 496 |
| 492 // Pointed to by NetworkDelegate. | 497 // Pointed to by NetworkDelegate. |
| 493 mutable scoped_ptr<policy::URLBlacklistManager> url_blacklist_manager_; | 498 mutable scoped_ptr<policy::URLBlacklistManager> url_blacklist_manager_; |
| 494 | 499 |
| 500 mutable scoped_ptr<policy::PolicyHeaderIOHelper> policy_header_helper_; | |
|
Joao da Silva
2013/12/09 14:46:21
I think this needs an #ifdef, otherwise non-policy
Andrew T Wilson (Slow)
2013/12/10 07:15:56
Done.
| |
| 501 | |
| 495 // Pointed to by URLRequestContext. | 502 // Pointed to by URLRequestContext. |
| 496 mutable scoped_refptr<extensions::InfoMap> extension_info_map_; | 503 mutable scoped_refptr<extensions::InfoMap> extension_info_map_; |
| 497 mutable scoped_ptr<net::ServerBoundCertService> server_bound_cert_service_; | 504 mutable scoped_ptr<net::ServerBoundCertService> server_bound_cert_service_; |
| 498 mutable scoped_ptr<ChromeNetworkDelegate> network_delegate_; | 505 mutable scoped_ptr<ChromeNetworkDelegate> network_delegate_; |
| 499 mutable scoped_ptr<net::FraudulentCertificateReporter> | 506 mutable scoped_ptr<net::FraudulentCertificateReporter> |
| 500 fraudulent_certificate_reporter_; | 507 fraudulent_certificate_reporter_; |
| 501 mutable scoped_ptr<net::ProxyService> proxy_service_; | 508 mutable scoped_ptr<net::ProxyService> proxy_service_; |
| 502 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; | 509 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; |
| 503 mutable scoped_ptr<net::HttpServerProperties> | 510 mutable scoped_ptr<net::HttpServerProperties> |
| 504 http_server_properties_; | 511 http_server_properties_; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 538 | 545 |
| 539 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 546 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
| 540 bool initialized_on_UI_thread_; | 547 bool initialized_on_UI_thread_; |
| 541 | 548 |
| 542 bool is_incognito_; | 549 bool is_incognito_; |
| 543 | 550 |
| 544 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 551 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 545 }; | 552 }; |
| 546 | 553 |
| 547 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 554 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |