| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 // net::URLRequest. | 102 // net::URLRequest. |
| 103 static bool IsHandledURL(const GURL& url); | 103 static bool IsHandledURL(const GURL& url); |
| 104 | 104 |
| 105 // Utility to install additional WebUI handlers into the |job_factory|. | 105 // Utility to install additional WebUI handlers into the |job_factory|. |
| 106 // Ownership of the handlers is transfered from |protocol_handlers| | 106 // Ownership of the handlers is transfered from |protocol_handlers| |
| 107 // to the |job_factory|. | 107 // to the |job_factory|. |
| 108 static void InstallProtocolHandlers( | 108 static void InstallProtocolHandlers( |
| 109 net::URLRequestJobFactoryImpl* job_factory, | 109 net::URLRequestJobFactoryImpl* job_factory, |
| 110 content::ProtocolHandlerMap* protocol_handlers); | 110 content::ProtocolHandlerMap* protocol_handlers); |
| 111 | 111 |
| 112 // Sets a global CertVerifier to use when initializing all profiles. |
| 113 static void SetCertVerifierForTesting(net::CertVerifier* cert_verifier); |
| 114 |
| 112 // Called by Profile. | 115 // Called by Profile. |
| 113 content::ResourceContext* GetResourceContext() const; | 116 content::ResourceContext* GetResourceContext() const; |
| 114 | 117 |
| 115 // Initializes the ProfileIOData object and primes the RequestContext | 118 // Initializes the ProfileIOData object and primes the RequestContext |
| 116 // generation. Must be called prior to any of the Get*() methods other than | 119 // generation. Must be called prior to any of the Get*() methods other than |
| 117 // GetResouceContext or GetMetricsEnabledStateOnIOThread. | 120 // GetResouceContext or GetMetricsEnabledStateOnIOThread. |
| 118 void Init( | 121 void Init( |
| 119 content::ProtocolHandlerMap* protocol_handlers, | 122 content::ProtocolHandlerMap* protocol_handlers, |
| 120 content::URLRequestInterceptorScopedVector request_interceptors) const; | 123 content::URLRequestInterceptorScopedVector request_interceptors) const; |
| 121 | 124 |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 | 546 |
| 544 mutable scoped_ptr<net::FraudulentCertificateReporter> | 547 mutable scoped_ptr<net::FraudulentCertificateReporter> |
| 545 fraudulent_certificate_reporter_; | 548 fraudulent_certificate_reporter_; |
| 546 mutable scoped_ptr<net::ProxyService> proxy_service_; | 549 mutable scoped_ptr<net::ProxyService> proxy_service_; |
| 547 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; | 550 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; |
| 548 mutable scoped_ptr<net::HttpServerProperties> | 551 mutable scoped_ptr<net::HttpServerProperties> |
| 549 http_server_properties_; | 552 http_server_properties_; |
| 550 #if defined(OS_CHROMEOS) | 553 #if defined(OS_CHROMEOS) |
| 551 // Set to |cert_verifier_| if it references a PolicyCertVerifier. In that | 554 // Set to |cert_verifier_| if it references a PolicyCertVerifier. In that |
| 552 // case, the verifier is owned by |cert_verifier_|. Otherwise, set to NULL. | 555 // case, the verifier is owned by |cert_verifier_|. Otherwise, set to NULL. |
| 556 mutable scoped_ptr<net::CertVerifier> cert_verifier_; |
| 553 mutable policy::PolicyCertVerifier* policy_cert_verifier_; | 557 mutable policy::PolicyCertVerifier* policy_cert_verifier_; |
| 554 mutable scoped_ptr<net::CertVerifier> cert_verifier_; | |
| 555 mutable std::string username_hash_; | 558 mutable std::string username_hash_; |
| 556 mutable bool use_system_key_slot_; | 559 mutable bool use_system_key_slot_; |
| 557 #endif | 560 #endif |
| 558 | 561 |
| 559 mutable scoped_ptr<net::TransportSecurityPersister> | 562 mutable scoped_ptr<net::TransportSecurityPersister> |
| 560 transport_security_persister_; | 563 transport_security_persister_; |
| 561 mutable scoped_ptr<net::CertificateReportSender> certificate_report_sender_; | 564 mutable scoped_ptr<net::CertificateReportSender> certificate_report_sender_; |
| 562 | 565 |
| 563 // These are only valid in between LazyInitialize() and their accessor being | 566 // These are only valid in between LazyInitialize() and their accessor being |
| 564 // called. | 567 // called. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 595 | 598 |
| 596 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 599 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
| 597 bool initialized_on_UI_thread_; | 600 bool initialized_on_UI_thread_; |
| 598 | 601 |
| 599 const Profile::ProfileType profile_type_; | 602 const Profile::ProfileType profile_type_; |
| 600 | 603 |
| 601 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 604 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 602 }; | 605 }; |
| 603 | 606 |
| 604 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 607 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |