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

Unified Diff: chrome/browser/predictors/resource_prefetch_common.h

Issue 633373005: Use more flexible field trial control on resource prefetching for mobile web (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/predictors/resource_prefetch_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/predictors/resource_prefetch_common.h
diff --git a/chrome/browser/predictors/resource_prefetch_common.h b/chrome/browser/predictors/resource_prefetch_common.h
index f94a50dbe08918757dcb6889141c275a15076106..9525b2bea482df577d16c444744e85bc5c2a2acb 100644
--- a/chrome/browser/predictors/resource_prefetch_common.h
+++ b/chrome/browser/predictors/resource_prefetch_common.h
@@ -74,11 +74,16 @@ struct ResourcePrefetchPredictorConfig {
// Helpers to deal with mode.
bool IsLearningEnabled() const;
- bool IsPrefetchingEnabled() const;
+ bool IsPrefetchingEnabled(Profile* profile) const;
bool IsURLLearningEnabled() const;
bool IsHostLearningEnabled() const;
- bool IsURLPrefetchingEnabled() const;
- bool IsHostPrefetchingEnabled() const;
+ bool IsURLPrefetchingEnabled(Profile* profile) const;
+ bool IsHostPrefetchingEnabled(Profile* profile) const;
+
+ bool IsLowConfidenceForTest() const;
+ bool IsHighConfidenceForTest() const;
+ bool IsMoreResourcesEnabledForTest() const;
+ bool IsSmallDBEnabledForTest() const;
// If a navigation hasn't seen a load complete event in this much time, it
// is considered abandoned.
« no previous file with comments | « no previous file | chrome/browser/predictors/resource_prefetch_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698