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 |