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

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: rebase on #396550 Created 4 years, 6 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698