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> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 #include "base/prefs/pref_member.h" | 18 #include "base/prefs/pref_member.h" |
19 #include "base/synchronization/lock.h" | 19 #include "base/synchronization/lock.h" |
20 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 20 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
21 #include "chrome/browser/io_thread.h" | 21 #include "chrome/browser/io_thread.h" |
22 #include "chrome/browser/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
23 #include "chrome/browser/profiles/storage_partition_descriptor.h" | 23 #include "chrome/browser/profiles/storage_partition_descriptor.h" |
24 #include "components/content_settings/core/common/content_settings_types.h" | 24 #include "components/content_settings/core/common/content_settings_types.h" |
25 #include "content/public/browser/content_browser_client.h" | 25 #include "content/public/browser/content_browser_client.h" |
26 #include "content/public/browser/resource_context.h" | 26 #include "content/public/browser/resource_context.h" |
| 27 #include "net/cert/ct_verifier.h" |
27 #include "net/cookies/cookie_monster.h" | 28 #include "net/cookies/cookie_monster.h" |
28 #include "net/http/http_cache.h" | 29 #include "net/http/http_cache.h" |
29 #include "net/http/http_network_session.h" | 30 #include "net/http/http_network_session.h" |
30 #include "net/url_request/url_request_context.h" | 31 #include "net/url_request/url_request_context.h" |
31 #include "net/url_request/url_request_interceptor.h" | 32 #include "net/url_request/url_request_interceptor.h" |
32 #include "net/url_request/url_request_job_factory.h" | 33 #include "net/url_request/url_request_job_factory.h" |
33 | 34 |
34 class ChromeHttpUserAgentSettings; | 35 class ChromeHttpUserAgentSettings; |
35 class ChromeNetworkDelegate; | 36 class ChromeNetworkDelegate; |
36 class ChromeURLRequestContextGetter; | 37 class ChromeURLRequestContextGetter; |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 #endif | 542 #endif |
542 mutable scoped_ptr<net::ChannelIDService> channel_id_service_; | 543 mutable scoped_ptr<net::ChannelIDService> channel_id_service_; |
543 | 544 |
544 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyIOData> | 545 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyIOData> |
545 data_reduction_proxy_io_data_; | 546 data_reduction_proxy_io_data_; |
546 | 547 |
547 mutable scoped_ptr<net::FraudulentCertificateReporter> | 548 mutable scoped_ptr<net::FraudulentCertificateReporter> |
548 fraudulent_certificate_reporter_; | 549 fraudulent_certificate_reporter_; |
549 mutable scoped_ptr<net::ProxyService> proxy_service_; | 550 mutable scoped_ptr<net::ProxyService> proxy_service_; |
550 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; | 551 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; |
| 552 mutable scoped_ptr<net::CTVerifier> cert_transparency_verifier_; |
551 mutable scoped_ptr<net::HttpServerProperties> | 553 mutable scoped_ptr<net::HttpServerProperties> |
552 http_server_properties_; | 554 http_server_properties_; |
553 #if defined(OS_CHROMEOS) | 555 #if defined(OS_CHROMEOS) |
554 // Set to |cert_verifier_| if it references a PolicyCertVerifier. In that | 556 // Set to |cert_verifier_| if it references a PolicyCertVerifier. In that |
555 // case, the verifier is owned by |cert_verifier_|. Otherwise, set to NULL. | 557 // case, the verifier is owned by |cert_verifier_|. Otherwise, set to NULL. |
556 mutable scoped_ptr<net::CertVerifier> cert_verifier_; | 558 mutable scoped_ptr<net::CertVerifier> cert_verifier_; |
557 mutable policy::PolicyCertVerifier* policy_cert_verifier_; | 559 mutable policy::PolicyCertVerifier* policy_cert_verifier_; |
558 mutable std::string username_hash_; | 560 mutable std::string username_hash_; |
559 mutable bool use_system_key_slot_; | 561 mutable bool use_system_key_slot_; |
560 #endif | 562 #endif |
(...skipping 28 matching lines...) Expand all Loading... |
589 #endif | 591 #endif |
590 | 592 |
591 #if defined(ENABLE_EXTENSIONS) | 593 #if defined(ENABLE_EXTENSIONS) |
592 // Is NULL if switches::kDisableExtensionsHttpThrottling is on. | 594 // Is NULL if switches::kDisableExtensionsHttpThrottling is on. |
593 mutable scoped_ptr<extensions::ExtensionThrottleManager> | 595 mutable scoped_ptr<extensions::ExtensionThrottleManager> |
594 extension_throttle_manager_; | 596 extension_throttle_manager_; |
595 #endif | 597 #endif |
596 | 598 |
597 mutable scoped_ptr<DevToolsNetworkController> network_controller_; | 599 mutable scoped_ptr<DevToolsNetworkController> network_controller_; |
598 | 600 |
| 601 // Must be deleted before the URLRequestContexts |
| 602 mutable scoped_ptr<net::CTVerifier::Observer> cert_transparency_observer_; |
| 603 |
599 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 604 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
600 bool initialized_on_UI_thread_; | 605 bool initialized_on_UI_thread_; |
601 | 606 |
602 const Profile::ProfileType profile_type_; | 607 const Profile::ProfileType profile_type_; |
603 | 608 |
604 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 609 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
605 }; | 610 }; |
606 | 611 |
607 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 612 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |