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

Unified Diff: chrome/browser/net/predictor.h

Issue 443413002: Enable TCP preconnect and DNS preresolve on cellular. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert removing predictor_enabled check. Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/net/prediction_options.cc ('k') | chrome/browser/net/predictor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/predictor.h
diff --git a/chrome/browser/net/predictor.h b/chrome/browser/net/predictor.h
index 4fea68aa825730df5375585109c07e0753fd630e..59ac42ce34edd70beff146612a73110742d461b9 100644
--- a/chrome/browser/net/predictor.h
+++ b/chrome/browser/net/predictor.h
@@ -435,10 +435,10 @@ class Predictor {
UrlInfo::ResolutionMotivation motivation,
bool is_preconnect);
- // There two members call the corresponding global functions in
- // prediction_options.cc.
- virtual bool CanPredictNetworkActionsUI();
- virtual bool CanPredictNetworkActionsIO();
+ // These two members call the appropriate global functions in
+ // prediction_options.cc depending on which thread they are called on.
+ virtual bool CanPrefetchAndPrerender() const;
+ virtual bool CanPreresolveAndPreconnect() const;
// ------------- Start IO thread methods.
@@ -613,9 +613,9 @@ class SimplePredictor : public Predictor {
ProfileIOData* profile_io_data) OVERRIDE;
virtual void ShutdownOnUIThread() OVERRIDE;
private:
- // There member functions return True for unittests.
- virtual bool CanPredictNetworkActionsUI() OVERRIDE;
- virtual bool CanPredictNetworkActionsIO() OVERRIDE;
+ // These member functions return True for unittests.
+ virtual bool CanPrefetchAndPrerender() const OVERRIDE;
+ virtual bool CanPreresolveAndPreconnect() const OVERRIDE;
};
} // namespace chrome_browser_net
« no previous file with comments | « chrome/browser/net/prediction_options.cc ('k') | chrome/browser/net/predictor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698