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

Unified Diff: chrome/browser/prerender/prerender_field_trial.h

Issue 23622012: Integrate the LocalPredictor with the Prerender Service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 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/prerender/prerender_field_trial.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_field_trial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698