Index: chrome/browser/prerender/prerender_field_trial.h |
=================================================================== |
--- chrome/browser/prerender/prerender_field_trial.h (revision 220426) |
+++ chrome/browser/prerender/prerender_field_trial.h (working copy) |
@@ -22,7 +22,7 @@ |
bool IsOmniboxEnabled(Profile* profile); |
// Returns true iff the Prerender Local Predictor is enabled. |
-bool IsLocalPredictorEnabled(); |
+bool IsLocalPredictorEnabled(Profile* profile); |
// Returns true iff the LoggedIn Predictor is enabled. |
bool IsLoggedInPredictorEnabled(); |
@@ -38,6 +38,21 @@ |
// is irrelevant. |
bool IsLocalPredictorPrerenderAlwaysControlEnabled(); |
+// Returns true if we should query the prerender service for the profile |
+// provided. |
+bool ShouldQueryPrerenderService(Profile* profile); |
+ |
+// Returns the URL prefix to be used for the prerender service. The only thing |
+// that will be appended is the urlencoded query json. |
+std::string GetPrerenderServiceURLPrefix(); |
+ |
+// Returns the prerender service behavior ID that should be passed to the |
+// to the prerender service in requests. |
+int GetPrerenderServiceBehaviorID(); |
+ |
+// Returns the fetch timeout to be used for the prerender service, in ms. |
+int GetPrerenderServiceFetchTimeoutMs(); |
+ |
// Returns the TTL to be used for the local predictor. |
int GetLocalPredictorTTLSeconds(); |
@@ -54,6 +69,7 @@ |
bool SkipLocalPredictorFragment(); |
bool SkipLocalPredictorHTTPS(); |
bool SkipLocalPredictorWhitelist(); |
+bool SkipLocalPredictorServiceWhitelist(); |
bool SkipLocalPredictorLoggedIn(); |
bool SkipLocalPredictorDefaultNoPrerender(); |