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_ |