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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 22 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
23 #include "chrome/browser/devtools/devtools_network_controller_handle.h" | 23 #include "chrome/browser/devtools/devtools_network_controller_handle.h" |
24 #include "chrome/browser/io_thread.h" | 24 #include "chrome/browser/io_thread.h" |
25 #include "chrome/browser/profiles/profile.h" | 25 #include "chrome/browser/profiles/profile.h" |
26 #include "chrome/browser/profiles/storage_partition_descriptor.h" | 26 #include "chrome/browser/profiles/storage_partition_descriptor.h" |
27 #include "components/content_settings/core/common/content_settings_types.h" | 27 #include "components/content_settings/core/common/content_settings_types.h" |
28 #include "components/policy/core/browser/url_blacklist_manager.h" | 28 #include "components/policy/core/browser/url_blacklist_manager.h" |
29 #include "components/prefs/pref_member.h" | 29 #include "components/prefs/pref_member.h" |
30 #include "content/public/browser/content_browser_client.h" | 30 #include "content/public/browser/content_browser_client.h" |
31 #include "content/public/browser/resource_context.h" | 31 #include "content/public/browser/resource_context.h" |
| 32 #include "net/cert/ct_verifier.h" |
32 #include "net/cookies/cookie_monster.h" | 33 #include "net/cookies/cookie_monster.h" |
33 #include "net/http/http_cache.h" | 34 #include "net/http/http_cache.h" |
34 #include "net/http/http_network_session.h" | 35 #include "net/http/http_network_session.h" |
35 #include "net/url_request/url_request_context.h" | 36 #include "net/url_request/url_request_context.h" |
36 #include "net/url_request/url_request_interceptor.h" | 37 #include "net/url_request/url_request_interceptor.h" |
37 #include "net/url_request/url_request_job_factory.h" | 38 #include "net/url_request/url_request_job_factory.h" |
38 | 39 |
39 class ChromeHttpUserAgentSettings; | 40 class ChromeHttpUserAgentSettings; |
40 class ChromeNetworkDelegate; | 41 class ChromeNetworkDelegate; |
41 class ChromeURLRequestContextGetter; | 42 class ChromeURLRequestContextGetter; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 } | 178 } |
178 | 179 |
179 BooleanPrefMember* signin_allowed() const { | 180 BooleanPrefMember* signin_allowed() const { |
180 return &signin_allowed_; | 181 return &signin_allowed_; |
181 } | 182 } |
182 | 183 |
183 IntegerPrefMember* network_prediction_options() const { | 184 IntegerPrefMember* network_prediction_options() const { |
184 return &network_prediction_options_; | 185 return &network_prediction_options_; |
185 } | 186 } |
186 | 187 |
187 bool HasMediaDeviceIDSalt() const { | 188 content::ResourceContext::SaltCallback GetMediaDeviceIDSalt() const; |
188 return media_device_id_salt_.get() != nullptr; | |
189 } | |
190 | |
191 std::string GetMediaDeviceIDSalt() const; | |
192 | 189 |
193 DevToolsNetworkControllerHandle* network_controller_handle() const { | 190 DevToolsNetworkControllerHandle* network_controller_handle() const { |
194 return &network_controller_handle_; | 191 return &network_controller_handle_; |
195 } | 192 } |
196 | 193 |
197 net::TransportSecurityState* transport_security_state() const { | 194 net::TransportSecurityState* transport_security_state() const { |
198 return transport_security_state_.get(); | 195 return transport_security_state_.get(); |
199 } | 196 } |
200 | 197 |
201 #if defined(OS_CHROMEOS) | 198 #if defined(OS_CHROMEOS) |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 // ResourceContext implementation: | 429 // ResourceContext implementation: |
433 net::HostResolver* GetHostResolver() override; | 430 net::HostResolver* GetHostResolver() override; |
434 net::URLRequestContext* GetRequestContext() override; | 431 net::URLRequestContext* GetRequestContext() override; |
435 std::unique_ptr<net::ClientCertStore> CreateClientCertStore() override; | 432 std::unique_ptr<net::ClientCertStore> CreateClientCertStore() override; |
436 void CreateKeygenHandler( | 433 void CreateKeygenHandler( |
437 uint32_t key_size_in_bits, | 434 uint32_t key_size_in_bits, |
438 const std::string& challenge_string, | 435 const std::string& challenge_string, |
439 const GURL& url, | 436 const GURL& url, |
440 const base::Callback<void(std::unique_ptr<net::KeygenHandler>)>& | 437 const base::Callback<void(std::unique_ptr<net::KeygenHandler>)>& |
441 callback) override; | 438 callback) override; |
442 std::string GetMediaDeviceIDSalt() override; | 439 SaltCallback GetMediaDeviceIDSalt() override; |
443 | 440 |
444 private: | 441 private: |
445 friend class ProfileIOData; | 442 friend class ProfileIOData; |
446 | 443 |
447 ProfileIOData* const io_data_; | 444 ProfileIOData* const io_data_; |
448 | 445 |
449 net::HostResolver* host_resolver_; | 446 net::HostResolver* host_resolver_; |
450 net::URLRequestContext* request_context_; | 447 net::URLRequestContext* request_context_; |
451 }; | 448 }; |
452 | 449 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 mutable std::unique_ptr<certificate_transparency::TreeStateTracker> | 616 mutable std::unique_ptr<certificate_transparency::TreeStateTracker> |
620 ct_tree_tracker_; | 617 ct_tree_tracker_; |
621 mutable base::Closure ct_tree_tracker_unregistration_; | 618 mutable base::Closure ct_tree_tracker_unregistration_; |
622 | 619 |
623 const Profile::ProfileType profile_type_; | 620 const Profile::ProfileType profile_type_; |
624 | 621 |
625 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 622 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
626 }; | 623 }; |
627 | 624 |
628 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 625 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |