| 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 | 259 |
| 260 previews::PreviewsIOData* previews_io_data() const { | 260 previews::PreviewsIOData* previews_io_data() const { |
| 261 return previews_io_data_.get(); | 261 return previews_io_data_.get(); |
| 262 } | 262 } |
| 263 | 263 |
| 264 // This function is to be used to check if the |url| is defined in | 264 // This function is to be used to check if the |url| is defined in |
| 265 // blacklist or whitelist policy. | 265 // blacklist or whitelist policy. |
| 266 virtual policy::URLBlacklist::URLBlacklistState GetURLBlacklistState( | 266 virtual policy::URLBlacklist::URLBlacklistState GetURLBlacklistState( |
| 267 const GURL& url) const; | 267 const GURL& url) const; |
| 268 | 268 |
| 269 // Returns the predictor service for this Profile. Returns nullptr if there is | |
| 270 // no Predictor, as is the case with OffTheRecord profiles. | |
| 271 virtual chrome_browser_net::Predictor* GetPredictor(); | |
| 272 | 269 |
| 273 // Get platform ClientCertStore. May return nullptr. | 270 // Get platform ClientCertStore. May return nullptr. |
| 274 std::unique_ptr<net::ClientCertStore> CreateClientCertStore(); | 271 std::unique_ptr<net::ClientCertStore> CreateClientCertStore(); |
| 275 | 272 |
| 276 protected: | 273 protected: |
| 277 // A URLRequestContext for media that owns its HTTP factory, to ensure | 274 // A URLRequestContext for media that owns its HTTP factory, to ensure |
| 278 // it is deleted. | 275 // it is deleted. |
| 279 class MediaRequestContext : public net::URLRequestContext { | 276 class MediaRequestContext : public net::URLRequestContext { |
| 280 public: | 277 public: |
| 281 MediaRequestContext(); | 278 MediaRequestContext(); |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 mutable std::unique_ptr<certificate_transparency::TreeStateTracker> | 635 mutable std::unique_ptr<certificate_transparency::TreeStateTracker> |
| 639 ct_tree_tracker_; | 636 ct_tree_tracker_; |
| 640 mutable base::Closure ct_tree_tracker_unregistration_; | 637 mutable base::Closure ct_tree_tracker_unregistration_; |
| 641 | 638 |
| 642 const Profile::ProfileType profile_type_; | 639 const Profile::ProfileType profile_type_; |
| 643 | 640 |
| 644 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 641 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 645 }; | 642 }; |
| 646 | 643 |
| 647 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 644 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |