| OLD | NEW |
| 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 Profile; | 10 class Profile; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // that will be appended is the urlencoded query json. | 64 // that will be appended is the urlencoded query json. |
| 65 std::string GetPrerenderServiceURLPrefix(); | 65 std::string GetPrerenderServiceURLPrefix(); |
| 66 | 66 |
| 67 // Returns the prerender service behavior ID that should be passed to the | 67 // Returns the prerender service behavior ID that should be passed to the |
| 68 // to the prerender service in requests. | 68 // to the prerender service in requests. |
| 69 int GetPrerenderServiceBehaviorID(); | 69 int GetPrerenderServiceBehaviorID(); |
| 70 | 70 |
| 71 // Returns the fetch timeout to be used for the prerender service, in ms. | 71 // Returns the fetch timeout to be used for the prerender service, in ms. |
| 72 int GetPrerenderServiceFetchTimeoutMs(); | 72 int GetPrerenderServiceFetchTimeoutMs(); |
| 73 | 73 |
| 74 // Returns the timeout for entries in the prefetch list, in seconds. |
| 75 int GetPrerenderPrefetchListTimeoutSeconds(); |
| 76 |
| 74 // Returns the TTL to be used for the local predictor. | 77 // Returns the TTL to be used for the local predictor. |
| 75 int GetLocalPredictorTTLSeconds(); | 78 int GetLocalPredictorTTLSeconds(); |
| 76 | 79 |
| 77 // Returns the half-life time to use to decay local predictor prerender | 80 // Returns the half-life time to use to decay local predictor prerender |
| 78 // priorities. | 81 // priorities. |
| 79 int GetLocalPredictorPrerenderPriorityHalfLifeTimeSeconds(); | 82 int GetLocalPredictorPrerenderPriorityHalfLifeTimeSeconds(); |
| 80 | 83 |
| 81 // Returns the maximum number of concurrent prerenders the local predictor | 84 // Returns the maximum number of concurrent prerenders the local predictor |
| 82 // may maintain. | 85 // may maintain. |
| 83 int GetLocalPredictorMaxConcurrentPrerenders(); | 86 int GetLocalPredictorMaxConcurrentPrerenders(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 96 bool SkipLocalPredictorDefaultNoPrerender(); | 99 bool SkipLocalPredictorDefaultNoPrerender(); |
| 97 bool SkipLocalPredictorLocalCandidates(); | 100 bool SkipLocalPredictorLocalCandidates(); |
| 98 bool SkipLocalPredictorServiceCandidates(); | 101 bool SkipLocalPredictorServiceCandidates(); |
| 99 | 102 |
| 100 // Indicates whether no prerender cookie stores should be used for prerendering. | 103 // Indicates whether no prerender cookie stores should be used for prerendering. |
| 101 bool IsPrerenderCookieStoreEnabled(); | 104 bool IsPrerenderCookieStoreEnabled(); |
| 102 | 105 |
| 103 } // namespace prerender | 106 } // namespace prerender |
| 104 | 107 |
| 105 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_ | 108 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_ |
| OLD | NEW |