Chromium Code Reviews| 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 33812ff5183a9975a1ca432698b828bb81cab67c..87d2ed738784496dfcd7e02303ee073570bdcced 100644 |
| --- a/chrome/browser/predictors/resource_prefetch_common.h |
| +++ b/chrome/browser/predictors/resource_prefetch_common.h |
| @@ -69,10 +69,11 @@ struct ResourcePrefetchPredictorConfig { |
| // The mode the prefetcher is running in. Forms a bit map. |
| enum Mode { |
| - URL_LEARNING = 1 << 0, |
| - HOST_LEARNING = 1 << 1, |
| - URL_PREFETCHING = 1 << 2, // Should also turn on URL_LEARNING. |
| - HOST_PRFETCHING = 1 << 3 // Should also turn on HOST_LEARNING. |
| + URL_LEARNING = 1 << 0, |
| + HOST_LEARNING = 1 << 1, |
| + URL_PREFETCHING = 1 << 2, // Should also turn on URL_LEARNING. |
| + HOST_PREFETCHING = 1 << 3, // Should also turn on HOST_LEARNING. |
| + EXTERNAL_ONLY = 1 << 4 |
|
pasko
2016/11/17 15:59:04
we need to explain somewhere what an 'external' re
Benoit L
2016/11/21 13:40:32
Done.
|
| }; |
| int mode; |
| @@ -81,6 +82,7 @@ struct ResourcePrefetchPredictorConfig { |
| bool IsPrefetchingEnabled(Profile* profile) const; |
| bool IsURLLearningEnabled() const; |
| bool IsHostLearningEnabled() const; |
| + bool ExternalPrefetchingOnly() const; |
| bool IsURLPrefetchingEnabled(Profile* profile) const; |
| bool IsHostPrefetchingEnabled(Profile* profile) const; |