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

Side by Side Diff: chrome/browser/prerender/prerender_field_trial.h

Issue 23506038: Add options to disable each of the two aspects of the prerender service (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 class CommandLine; 10 class CommandLine;
(...skipping 24 matching lines...) Expand all
35 35
36 // Returns true if the local predictor should prerender, but only as control 36 // Returns true if the local predictor should prerender, but only as control
37 // group. If the local predictor never launches prerenders, then this setting 37 // group. If the local predictor never launches prerenders, then this setting
38 // is irrelevant. 38 // is irrelevant.
39 bool IsLocalPredictorPrerenderAlwaysControlEnabled(); 39 bool IsLocalPredictorPrerenderAlwaysControlEnabled();
40 40
41 // Returns true if we should query the prerender service for the profile 41 // Returns true if we should query the prerender service for the profile
42 // provided. 42 // provided.
43 bool ShouldQueryPrerenderService(Profile* profile); 43 bool ShouldQueryPrerenderService(Profile* profile);
44 44
45 // Indicates whether we should query the prerender service for the current URL
46 // and candidate URLs, respectively.
47 bool ShouldQueryPrerenderServiceForCurrentURL();
48 bool ShouldQueryPrerenderServiceForCandidateURLs();
49
45 // Returns the URL prefix to be used for the prerender service. The only thing 50 // Returns the URL prefix to be used for the prerender service. The only thing
46 // that will be appended is the urlencoded query json. 51 // that will be appended is the urlencoded query json.
47 std::string GetPrerenderServiceURLPrefix(); 52 std::string GetPrerenderServiceURLPrefix();
48 53
49 // Returns the prerender service behavior ID that should be passed to the 54 // Returns the prerender service behavior ID that should be passed to the
50 // to the prerender service in requests. 55 // to the prerender service in requests.
51 int GetPrerenderServiceBehaviorID(); 56 int GetPrerenderServiceBehaviorID();
52 57
53 // Returns the fetch timeout to be used for the prerender service, in ms. 58 // Returns the fetch timeout to be used for the prerender service, in ms.
54 int GetPrerenderServiceFetchTimeoutMs(); 59 int GetPrerenderServiceFetchTimeoutMs();
(...skipping 16 matching lines...) Expand all
71 bool SkipLocalPredictorWhitelist(); 76 bool SkipLocalPredictorWhitelist();
72 bool SkipLocalPredictorServiceWhitelist(); 77 bool SkipLocalPredictorServiceWhitelist();
73 bool SkipLocalPredictorLoggedIn(); 78 bool SkipLocalPredictorLoggedIn();
74 bool SkipLocalPredictorDefaultNoPrerender(); 79 bool SkipLocalPredictorDefaultNoPrerender();
75 bool SkipLocalPredictorLocalCandidates(); 80 bool SkipLocalPredictorLocalCandidates();
76 bool SkipLocalPredictorServiceCandidates(); 81 bool SkipLocalPredictorServiceCandidates();
77 82
78 } // namespace prerender 83 } // namespace prerender
79 84
80 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_ 85 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698