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

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: 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
Index: chrome/browser/net/predictor.h
diff --git a/chrome/browser/net/predictor.h b/chrome/browser/net/predictor.h
index 4fea68aa825730df5375585109c07e0753fd630e..91f020eddd070ae01ead568390c9477a255d9836 100644
--- a/chrome/browser/net/predictor.h
+++ b/chrome/browser/net/predictor.h
@@ -435,10 +435,12 @@ class Predictor {
UrlInfo::ResolutionMotivation motivation,
bool is_preconnect);
- // There two members call the corresponding global functions in
+ // These four members call the corresponding global functions in
// prediction_options.cc.
virtual bool CanPredictNetworkActionsUI();
virtual bool CanPredictNetworkActionsIO();
+ virtual bool CanPreconnectUI();
+ virtual bool CanPreconnectIO();
mmenke 2014/08/08 16:05:42 nit: All 4 of these should be const.
Bence 2014/08/08 20:10:03 Done.
// ------------- Start IO thread methods.
@@ -613,9 +615,11 @@ class SimplePredictor : public Predictor {
ProfileIOData* profile_io_data) OVERRIDE;
virtual void ShutdownOnUIThread() OVERRIDE;
private:
- // There member functions return True for unittests.
+ // These member functions return True for unittests.
virtual bool CanPredictNetworkActionsUI() OVERRIDE;
virtual bool CanPredictNetworkActionsIO() OVERRIDE;
+ virtual bool CanPreconnectUI() OVERRIDE;
+ virtual bool CanPreconnectIO() OVERRIDE;
};
} // namespace chrome_browser_net

Powered by Google App Engine
This is Rietveld 408576698