| 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 virtual policy::URLBlacklist::URLBlacklistState GetURLBlacklistState( | 257 virtual policy::URLBlacklist::URLBlacklistState GetURLBlacklistState( |
| 258 const GURL& url) const; | 258 const GURL& url) const; |
| 259 | 259 |
| 260 // Returns the predictor service for this Profile. Returns nullptr if there is | 260 // Returns the predictor service for this Profile. Returns nullptr if there is |
| 261 // no Predictor, as is the case with OffTheRecord profiles. | 261 // no Predictor, as is the case with OffTheRecord profiles. |
| 262 virtual chrome_browser_net::Predictor* GetPredictor(); | 262 virtual chrome_browser_net::Predictor* GetPredictor(); |
| 263 | 263 |
| 264 // Get platform ClientCertStore. May return nullptr. | 264 // Get platform ClientCertStore. May return nullptr. |
| 265 std::unique_ptr<net::ClientCertStore> CreateClientCertStore(); | 265 std::unique_ptr<net::ClientCertStore> CreateClientCertStore(); |
| 266 | 266 |
| 267 // Called on IO thread thread when net parameters change (e.g. due to policy). |
| 268 void UpdateNetParamsOnIOThread( |
| 269 net::HttpNetworkSession::ParamsUpdate params_update); |
| 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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 mutable std::unique_ptr<certificate_transparency::TreeStateTracker> | 631 mutable std::unique_ptr<certificate_transparency::TreeStateTracker> |
| 628 ct_tree_tracker_; | 632 ct_tree_tracker_; |
| 629 mutable base::Closure ct_tree_tracker_unregistration_; | 633 mutable base::Closure ct_tree_tracker_unregistration_; |
| 630 | 634 |
| 631 const Profile::ProfileType profile_type_; | 635 const Profile::ProfileType profile_type_; |
| 632 | 636 |
| 633 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 637 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 634 }; | 638 }; |
| 635 | 639 |
| 636 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 640 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |