| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 data_reduction_proxy::DataReductionProxyIOData* | 243 data_reduction_proxy::DataReductionProxyIOData* |
| 244 data_reduction_proxy_io_data() const { | 244 data_reduction_proxy_io_data() const { |
| 245 return data_reduction_proxy_io_data_.get(); | 245 return data_reduction_proxy_io_data_.get(); |
| 246 } | 246 } |
| 247 | 247 |
| 248 // This function is to be used to check if the |url| is defined in | 248 // This function is to be used to check if the |url| is defined in |
| 249 // blacklist or whitelist policy. | 249 // blacklist or whitelist policy. |
| 250 virtual policy::URLBlacklist::URLBlacklistState GetURLBlacklistState( | 250 virtual policy::URLBlacklist::URLBlacklistState GetURLBlacklistState( |
| 251 const GURL& url) const; | 251 const GURL& url) const; |
| 252 | 252 |
| 253 // Returns the predictor service for this Profile. Returns nullptr if there is |
| 254 // no Predictor, as is the case with OffTheRecord profiles. |
| 255 virtual chrome_browser_net::Predictor* GetPredictor(); |
| 256 |
| 253 protected: | 257 protected: |
| 254 // A URLRequestContext for media that owns its HTTP factory, to ensure | 258 // A URLRequestContext for media that owns its HTTP factory, to ensure |
| 255 // it is deleted. | 259 // it is deleted. |
| 256 class MediaRequestContext : public net::URLRequestContext { | 260 class MediaRequestContext : public net::URLRequestContext { |
| 257 public: | 261 public: |
| 258 MediaRequestContext(); | 262 MediaRequestContext(); |
| 259 | 263 |
| 260 void SetHttpTransactionFactory( | 264 void SetHttpTransactionFactory( |
| 261 std::unique_ptr<net::HttpTransactionFactory> http_factory); | 265 std::unique_ptr<net::HttpTransactionFactory> http_factory); |
| 262 | 266 |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 #endif | 609 #endif |
| 606 | 610 |
| 607 mutable DevToolsNetworkControllerHandle network_controller_handle_; | 611 mutable DevToolsNetworkControllerHandle network_controller_handle_; |
| 608 | 612 |
| 609 const Profile::ProfileType profile_type_; | 613 const Profile::ProfileType profile_type_; |
| 610 | 614 |
| 611 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 615 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 612 }; | 616 }; |
| 613 | 617 |
| 614 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 618 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |