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