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

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: Created 4 years, 8 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.
249 virtual chrome_browser_net::Predictor* predictor();
mmenke 2016/04/07 22:12:49 As a virtual method, this should be named GetPredi
Charlie Harrison 2016/05/23 14:16:20 Done.
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 scoped_ptr<net::HttpTransactionFactory> http_factory); 259 scoped_ptr<net::HttpTransactionFactory> http_factory);
256 260
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 598
595 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. 599 // TODO(jhawkins): Remove once crbug.com/102004 is fixed.
596 bool initialized_on_UI_thread_; 600 bool initialized_on_UI_thread_;
597 601
598 const Profile::ProfileType profile_type_; 602 const Profile::ProfileType profile_type_;
599 603
600 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 604 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
601 }; 605 };
602 606
603 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 607 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698