Index: chrome/browser/net/predictor.h |
diff --git a/chrome/browser/net/predictor.h b/chrome/browser/net/predictor.h |
index 3234e17c71d3c02cdb167d2e08d8b84ae015951e..76a5de5d66e182e259932b93faae5f9b3d4bc232 100644 |
--- a/chrome/browser/net/predictor.h |
+++ b/chrome/browser/net/predictor.h |
@@ -113,6 +113,15 @@ class Predictor { |
// TODO(jar): We should do a persistent field trial to validate/optimize this. |
static const int kMaxUnusedSocketLifetimeSecondsWithoutAGet; |
+ // Enum describing when to allow network predictions based on connection type. |
+ // The same enum must be used by the platform-dependent components. |
+ // TODO(bnc): implement as per crbug.com/334602. |
+ enum NetworkPredictionOptions { |
+ NETWORK_PREDICTION_ALWAYS, |
+ NETWORK_PREDICTION_WIFI_ONLY, |
+ NETWORK_PREDICTION_NEVER |
+ }; |
mmenke
2014/06/20 14:48:28
nit: Looks like enums go before constants, accord
Bence
2014/06/20 15:13:55
Done.
|
+ |
// |max_concurrent| specifies how many concurrent (parallel) prefetches will |
// be performed. Host lookups will be issued through |host_resolver|. |
explicit Predictor(bool preconnect_enabled); |