| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 class CookieSettings; | 37 class CookieSettings; |
| 38 class DevToolsNetworkController; | 38 class DevToolsNetworkController; |
| 39 class HostContentSettingsMap; | 39 class HostContentSettingsMap; |
| 40 class MediaDeviceIDSalt; | 40 class MediaDeviceIDSalt; |
| 41 class ProtocolHandlerRegistry; | 41 class ProtocolHandlerRegistry; |
| 42 class SigninNamesOnIOThread; | 42 class SigninNamesOnIOThread; |
| 43 class SupervisedUserURLFilter; | 43 class SupervisedUserURLFilter; |
| 44 | 44 |
| 45 namespace chrome_browser_net { | 45 namespace chrome_browser_net { |
| 46 class ResourcePrefetchPredictorObserver; | 46 class ResourcePrefetchPredictorObserver; |
| 47 class CertificateErrorReporter; |
| 47 } | 48 } |
| 48 | 49 |
| 49 namespace data_reduction_proxy { | 50 namespace data_reduction_proxy { |
| 50 class DataReductionProxyIOData; | 51 class DataReductionProxyIOData; |
| 51 } | 52 } |
| 52 | 53 |
| 53 namespace extensions { | 54 namespace extensions { |
| 54 class InfoMap; | 55 class InfoMap; |
| 55 } | 56 } |
| 56 | 57 |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 // Returns whether or not metrics reporting is enabled in the browser instance | 245 // Returns whether or not metrics reporting is enabled in the browser instance |
| 245 // on which this profile resides. This is safe for use from the IO thread, and | 246 // on which this profile resides. This is safe for use from the IO thread, and |
| 246 // should only be called from there. | 247 // should only be called from there. |
| 247 bool GetMetricsEnabledStateOnIOThread() const; | 248 bool GetMetricsEnabledStateOnIOThread() const; |
| 248 | 249 |
| 249 void set_client_cert_store_factory_for_testing( | 250 void set_client_cert_store_factory_for_testing( |
| 250 const base::Callback<scoped_ptr<net::ClientCertStore>()>& factory) { | 251 const base::Callback<scoped_ptr<net::ClientCertStore>()>& factory) { |
| 251 client_cert_store_factory_ = factory; | 252 client_cert_store_factory_ = factory; |
| 252 } | 253 } |
| 253 | 254 |
| 255 void set_certificate_error_reporter_for_testing( |
| 256 chrome_browser_net::CertificateErrorReporter* certificate_error_reporter); |
| 257 |
| 254 bool IsDataReductionProxyEnabled() const; | 258 bool IsDataReductionProxyEnabled() const; |
| 255 | 259 |
| 256 data_reduction_proxy::DataReductionProxyIOData* | 260 data_reduction_proxy::DataReductionProxyIOData* |
| 257 data_reduction_proxy_io_data() const { | 261 data_reduction_proxy_io_data() const { |
| 258 return data_reduction_proxy_io_data_.get(); | 262 return data_reduction_proxy_io_data_.get(); |
| 259 } | 263 } |
| 260 | 264 |
| 265 base::WeakPtr<chrome_browser_net::CertificateErrorReporter> |
| 266 certificate_error_reporter() const; |
| 267 |
| 261 protected: | 268 protected: |
| 262 // A URLRequestContext for media that owns its HTTP factory, to ensure | 269 // A URLRequestContext for media that owns its HTTP factory, to ensure |
| 263 // it is deleted. | 270 // it is deleted. |
| 264 class MediaRequestContext : public net::URLRequestContext { | 271 class MediaRequestContext : public net::URLRequestContext { |
| 265 public: | 272 public: |
| 266 MediaRequestContext(); | 273 MediaRequestContext(); |
| 267 | 274 |
| 268 void SetHttpTransactionFactory( | 275 void SetHttpTransactionFactory( |
| 269 scoped_ptr<net::HttpTransactionFactory> http_factory); | 276 scoped_ptr<net::HttpTransactionFactory> http_factory); |
| 270 | 277 |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 #if defined(ENABLE_EXTENSIONS) | 575 #if defined(ENABLE_EXTENSIONS) |
| 569 mutable scoped_refptr<extensions::InfoMap> extension_info_map_; | 576 mutable scoped_refptr<extensions::InfoMap> extension_info_map_; |
| 570 #endif | 577 #endif |
| 571 mutable scoped_ptr<net::ChannelIDService> channel_id_service_; | 578 mutable scoped_ptr<net::ChannelIDService> channel_id_service_; |
| 572 | 579 |
| 573 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyIOData> | 580 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyIOData> |
| 574 data_reduction_proxy_io_data_; | 581 data_reduction_proxy_io_data_; |
| 575 | 582 |
| 576 mutable scoped_ptr<net::FraudulentCertificateReporter> | 583 mutable scoped_ptr<net::FraudulentCertificateReporter> |
| 577 fraudulent_certificate_reporter_; | 584 fraudulent_certificate_reporter_; |
| 585 mutable scoped_ptr<chrome_browser_net::CertificateErrorReporter> |
| 586 certificate_error_reporter_; |
| 578 mutable scoped_ptr<net::ProxyService> proxy_service_; | 587 mutable scoped_ptr<net::ProxyService> proxy_service_; |
| 579 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; | 588 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; |
| 580 mutable scoped_ptr<net::HttpServerProperties> | 589 mutable scoped_ptr<net::HttpServerProperties> |
| 581 http_server_properties_; | 590 http_server_properties_; |
| 582 #if defined(OS_CHROMEOS) | 591 #if defined(OS_CHROMEOS) |
| 583 // Set to |cert_verifier_| if it references a PolicyCertVerifier. In that | 592 // Set to |cert_verifier_| if it references a PolicyCertVerifier. In that |
| 584 // case, the verifier is owned by |cert_verifier_|. Otherwise, set to NULL. | 593 // case, the verifier is owned by |cert_verifier_|. Otherwise, set to NULL. |
| 585 mutable policy::PolicyCertVerifier* policy_cert_verifier_; | 594 mutable policy::PolicyCertVerifier* policy_cert_verifier_; |
| 586 mutable scoped_ptr<net::CertVerifier> cert_verifier_; | 595 mutable scoped_ptr<net::CertVerifier> cert_verifier_; |
| 587 mutable std::string username_hash_; | 596 mutable std::string username_hash_; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 | 629 |
| 621 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 630 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
| 622 bool initialized_on_UI_thread_; | 631 bool initialized_on_UI_thread_; |
| 623 | 632 |
| 624 const Profile::ProfileType profile_type_; | 633 const Profile::ProfileType profile_type_; |
| 625 | 634 |
| 626 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 635 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 627 }; | 636 }; |
| 628 | 637 |
| 629 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 638 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |