Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Side by Side Diff: chrome/browser/profiles/profile_io_data.h

Issue 1857383002: Refactor net predictor to use ResourceThrottles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more comment changes Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 client_cert_store_factory_ = factory; 237 client_cert_store_factory_ = factory;
238 } 238 }
239 239
240 bool IsDataReductionProxyEnabled() const; 240 bool IsDataReductionProxyEnabled() const;
241 241
242 data_reduction_proxy::DataReductionProxyIOData* 242 data_reduction_proxy::DataReductionProxyIOData*
243 data_reduction_proxy_io_data() const { 243 data_reduction_proxy_io_data() const {
244 return data_reduction_proxy_io_data_.get(); 244 return data_reduction_proxy_io_data_.get();
245 } 245 }
246 246
247 // Returns the predictor service for this Profile. This is only implemented in
248 // non-OffTheRecord Profiles.
mmenke 2016/05/23 18:50:22 Maybe replace "This is only implemented in non-Off
Charlie Harrison 2016/05/23 21:13:32 Done.
249 virtual chrome_browser_net::Predictor* GetPredictor();
250
247 protected: 251 protected:
248 // A URLRequestContext for media that owns its HTTP factory, to ensure 252 // A URLRequestContext for media that owns its HTTP factory, to ensure
249 // it is deleted. 253 // it is deleted.
250 class MediaRequestContext : public net::URLRequestContext { 254 class MediaRequestContext : public net::URLRequestContext {
251 public: 255 public:
252 MediaRequestContext(); 256 MediaRequestContext();
253 257
254 void SetHttpTransactionFactory( 258 void SetHttpTransactionFactory(
255 std::unique_ptr<net::HttpTransactionFactory> http_factory); 259 std::unique_ptr<net::HttpTransactionFactory> http_factory);
256 260
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 #endif 602 #endif
599 603
600 mutable DevToolsNetworkControllerHandle network_controller_handle_; 604 mutable DevToolsNetworkControllerHandle network_controller_handle_;
601 605
602 const Profile::ProfileType profile_type_; 606 const Profile::ProfileType profile_type_;
603 607
604 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 608 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
605 }; 609 };
606 610
607 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 611 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698