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 26 matching lines...) Expand all Loading... |
37 #include "net/url_request/url_request_context.h" | 37 #include "net/url_request/url_request_context.h" |
38 #include "net/url_request/url_request_interceptor.h" | 38 #include "net/url_request/url_request_interceptor.h" |
39 #include "net/url_request/url_request_job_factory.h" | 39 #include "net/url_request/url_request_job_factory.h" |
40 | 40 |
41 class ChromeHttpUserAgentSettings; | 41 class ChromeHttpUserAgentSettings; |
42 class ChromeNetworkDelegate; | 42 class ChromeNetworkDelegate; |
43 class ChromeURLRequestContextGetter; | 43 class ChromeURLRequestContextGetter; |
44 class ChromeExpectCTReporter; | 44 class ChromeExpectCTReporter; |
45 class HostContentSettingsMap; | 45 class HostContentSettingsMap; |
46 class MediaDeviceIDSalt; | 46 class MediaDeviceIDSalt; |
| 47 class NetHttpSessionParamsObserver; |
47 class ProtocolHandlerRegistry; | 48 class ProtocolHandlerRegistry; |
48 class SupervisedUserURLFilter; | 49 class SupervisedUserURLFilter; |
49 | 50 |
50 namespace chromeos { | 51 namespace chromeos { |
51 class CertificateProvider; | 52 class CertificateProvider; |
52 } | 53 } |
53 | 54 |
54 namespace chrome_browser_net { | 55 namespace chrome_browser_net { |
55 class ResourcePrefetchPredictorObserver; | 56 class ResourcePrefetchPredictorObserver; |
56 } | 57 } |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 virtual policy::URLBlacklist::URLBlacklistState GetURLBlacklistState( | 258 virtual policy::URLBlacklist::URLBlacklistState GetURLBlacklistState( |
258 const GURL& url) const; | 259 const GURL& url) const; |
259 | 260 |
260 // Returns the predictor service for this Profile. Returns nullptr if there is | 261 // Returns the predictor service for this Profile. Returns nullptr if there is |
261 // no Predictor, as is the case with OffTheRecord profiles. | 262 // no Predictor, as is the case with OffTheRecord profiles. |
262 virtual chrome_browser_net::Predictor* GetPredictor(); | 263 virtual chrome_browser_net::Predictor* GetPredictor(); |
263 | 264 |
264 // Get platform ClientCertStore. May return nullptr. | 265 // Get platform ClientCertStore. May return nullptr. |
265 std::unique_ptr<net::ClientCertStore> CreateClientCertStore(); | 266 std::unique_ptr<net::ClientCertStore> CreateClientCertStore(); |
266 | 267 |
| 268 // Called on IO thread thread to disable QUIC. |
| 269 void DisableQuicOnIOThread(); |
| 270 |
267 protected: | 271 protected: |
268 // A URLRequestContext for media that owns its HTTP factory, to ensure | 272 // A URLRequestContext for media that owns its HTTP factory, to ensure |
269 // it is deleted. | 273 // it is deleted. |
270 class MediaRequestContext : public net::URLRequestContext { | 274 class MediaRequestContext : public net::URLRequestContext { |
271 public: | 275 public: |
272 // |name| is used to describe this context. Currently there are two kinds of | 276 // |name| is used to describe this context. Currently there are two kinds of |
273 // media request context -- main media request context ("main_meda") and | 277 // media request context -- main media request context ("main_meda") and |
274 // isolated app media request context ("isolated_media"). | 278 // isolated app media request context ("isolated_media"). |
275 explicit MediaRequestContext(const std::string& name); | 279 explicit MediaRequestContext(const std::string& name); |
276 | 280 |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 mutable BooleanPrefMember sync_disabled_; | 549 mutable BooleanPrefMember sync_disabled_; |
546 mutable BooleanPrefMember signin_allowed_; | 550 mutable BooleanPrefMember signin_allowed_; |
547 mutable IntegerPrefMember network_prediction_options_; | 551 mutable IntegerPrefMember network_prediction_options_; |
548 // TODO(marja): Remove session_startup_pref_ if no longer needed. | 552 // TODO(marja): Remove session_startup_pref_ if no longer needed. |
549 mutable IntegerPrefMember session_startup_pref_; | 553 mutable IntegerPrefMember session_startup_pref_; |
550 mutable BooleanPrefMember quick_check_enabled_; | 554 mutable BooleanPrefMember quick_check_enabled_; |
551 mutable IntegerPrefMember incognito_availibility_pref_; | 555 mutable IntegerPrefMember incognito_availibility_pref_; |
552 | 556 |
553 BooleanPrefMember enable_metrics_; | 557 BooleanPrefMember enable_metrics_; |
554 | 558 |
| 559 // Observes profile's preference for changes to prefs which affect |
| 560 // HttpNetworkSession params. |
| 561 std::unique_ptr<NetHttpSessionParamsObserver> |
| 562 net_http_session_params_observer_; |
| 563 |
555 // Pointed to by NetworkDelegate. | 564 // Pointed to by NetworkDelegate. |
556 mutable std::unique_ptr<policy::URLBlacklistManager> url_blacklist_manager_; | 565 mutable std::unique_ptr<policy::URLBlacklistManager> url_blacklist_manager_; |
557 mutable std::unique_ptr<policy::PolicyHeaderIOHelper> policy_header_helper_; | 566 mutable std::unique_ptr<policy::PolicyHeaderIOHelper> policy_header_helper_; |
558 | 567 |
559 // Pointed to by URLRequestContext. | 568 // Pointed to by URLRequestContext. |
560 #if BUILDFLAG(ENABLE_EXTENSIONS) | 569 #if BUILDFLAG(ENABLE_EXTENSIONS) |
561 mutable scoped_refptr<extensions::InfoMap> extension_info_map_; | 570 mutable scoped_refptr<extensions::InfoMap> extension_info_map_; |
562 #endif | 571 #endif |
563 | 572 |
564 mutable std::unique_ptr<data_reduction_proxy::DataReductionProxyIOData> | 573 mutable std::unique_ptr<data_reduction_proxy::DataReductionProxyIOData> |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 mutable std::unique_ptr<certificate_transparency::TreeStateTracker> | 636 mutable std::unique_ptr<certificate_transparency::TreeStateTracker> |
628 ct_tree_tracker_; | 637 ct_tree_tracker_; |
629 mutable base::Closure ct_tree_tracker_unregistration_; | 638 mutable base::Closure ct_tree_tracker_unregistration_; |
630 | 639 |
631 const Profile::ProfileType profile_type_; | 640 const Profile::ProfileType profile_type_; |
632 | 641 |
633 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 642 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
634 }; | 643 }; |
635 | 644 |
636 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 645 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |