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

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

Issue 2729563002: predictors: Disable URL-based learning by default. (Closed)
Patch Set: Fix missed initialization. Created 3 years, 10 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 3ec303d25d186fc7eced89b76116017943ed572b..1086444b9169f98d326464e4d1cf6cb5187ff9f0 100644
--- a/chrome/browser/predictors/resource_prefetch_common.h
+++ b/chrome/browser/predictors/resource_prefetch_common.h
@@ -7,7 +7,6 @@
#include <stddef.h>
-#include "base/feature_list.h"
#include "base/time/time.h"
#include "components/sessions/core/session_id.h"
#include "url/gurl.h"
@@ -25,6 +24,7 @@ extern const char kModeParamName[];
extern const char kLearningMode[];
extern const char kExternalPrefetchingMode[];
extern const char kPrefetchingMode[];
+extern const char kEnableUrlLearningParamName[];
struct ResourcePrefetchPredictorConfig;
@@ -77,8 +77,8 @@ struct ResourcePrefetchPredictorConfig {
// The mode the prefetcher is running in. Forms a bit map.
enum Mode {
LEARNING = 1 << 0,
- PREFETCHING_FOR_NAVIGATION = 1 << 2, // Also enables LEARNING.
- PREFETCHING_FOR_EXTERNAL = 1 << 3 // Also enables LEARNING.
+ PREFETCHING_FOR_NAVIGATION = 1 << 2, // Should also turn on LEARNING.
+ PREFETCHING_FOR_EXTERNAL = 1 << 3 // Should also turn on LEARNING.
};
int mode;
@@ -122,6 +122,8 @@ struct ResourcePrefetchPredictorConfig {
// Maximum number of prefetches that can be inflight for a host for a single
// navigation.
size_t max_prefetches_inflight_per_host_per_navigation;
+ // True iff the predictor could use a url-based database.
+ bool is_url_learning_enabled;
};
} // namespace predictors
« 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