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

Unified Diff: chrome/browser/net/prediction_options.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
« no previous file with comments | « no previous file | chrome/browser/net/prediction_options.cc » ('j') | chrome/browser/net/prediction_options.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/prediction_options.h
diff --git a/chrome/browser/net/prediction_options.h b/chrome/browser/net/prediction_options.h
index d7114c8778324525305fa31ca0ed8792949e791e..a566645bcdb99bf80a0d1071e1587086a806d7c8 100644
--- a/chrome/browser/net/prediction_options.h
+++ b/chrome/browser/net/prediction_options.h
@@ -30,8 +30,8 @@ enum NetworkPredictionOptions {
void RegisterPredictionOptionsProfilePrefs(
user_prefs::PrefRegistrySyncable* registry);
-// The following two global functions determine whether predictive network
-// actions are enabled, based on preferences and network type.
+// The following two global functions determine whether prefetching
+// and prerendering are enabled, based on preferences and network type.
// To be executed on the IO thread only.
bool CanPredictNetworkActionsIO(ProfileIOData* profile_io_data);
@@ -39,6 +39,15 @@ bool CanPredictNetworkActionsIO(ProfileIOData* profile_io_data);
// To be executed on the UI thread only.
bool CanPredictNetworkActionsUI(PrefService* prefs);
mmenke 2014/08/08 16:05:42 I think this name is confusing, giving the preconn
Bence 2014/08/08 20:10:03 Done.
+// The following two global functions determine whether TCP preconnect
+// and DNS preresolution are enabled, based on preferences.
+
+// To be executed on the IO thread only.
+bool CanPreconnectIO(ProfileIOData* profile_io_data);
+
+// To be executed on the UI thread only.
+bool CanPreconnectUI(PrefService* prefs);
+
} // namespace chrome_browser_net
#endif // CHROME_BROWSER_NET_PREDICTION_OPTIONS_H_
« no previous file with comments | « no previous file | chrome/browser/net/prediction_options.cc » ('j') | chrome/browser/net/prediction_options.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698