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

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: 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 | « no previous file | chrome/browser/net/prediction_options.cc » ('j') | no next file with comments »
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 2829409082c96036ea38cfedae9370c681299020..49c33df135844d0c5915c05e30e74140409db54d 100644
--- a/chrome/browser/net/prediction_options.h
+++ b/chrome/browser/net/prediction_options.h
@@ -34,15 +34,28 @@ void RegisterPredictionOptionsProfilePrefs(
// prefs::kNetworkPredictionOptions (if does not have user setting).
void MigrateNetworkPredictionUserPrefs(PrefService* pref_service);
-// 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);
+bool CanPrefetchAndPrerenderIO(ProfileIOData* profile_io_data);
// To be executed on the UI thread only.
+bool CanPrefetchAndPrerenderUI(PrefService* prefs);
+
+// TODO(bnc): remove the following function as soon as Android Chrome is
+// modified to use CanPrefetchAndPrerenderUI instead.
bool CanPredictNetworkActionsUI(PrefService* prefs);
+// 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 CanPreresolveAndPreconnectIO(ProfileIOData* profile_io_data);
+
+// To be executed on the UI thread only.
+bool CanPreresolveAndPreconnectUI(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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698