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

Unified Diff: chrome/browser/net/predictor.h

Issue 357723003: Implement prediction_options. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo. Created 6 years, 6 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
Index: chrome/browser/net/predictor.h
diff --git a/chrome/browser/net/predictor.h b/chrome/browser/net/predictor.h
index 3a747d8251796b5fc987511dcba1b9fbda645c7c..76ea6d451907ae3fa5658dba117cb6aa31932c2a 100644
--- a/chrome/browser/net/predictor.h
+++ b/chrome/browser/net/predictor.h
@@ -83,10 +83,13 @@ class Predictor {
// Enum describing when to allow network predictions based on connection type.
// The same enum must be used by the platform-dependent components.
mmenke 2014/06/26 20:41:02 Should mention that order matters here, since they
Bence 2014/06/27 15:11:51 Done.
// TODO(bnc): implement as per crbug.com/334602.
+ // NETWORK_PREDICTION_UNSET means that the old preferences,
+ // kNetworkPredictionEnabled and kAllowPrerender, should be observed.
enum NetworkPredictionOptions {
NETWORK_PREDICTION_ALWAYS,
NETWORK_PREDICTION_WIFI_ONLY,
- NETWORK_PREDICTION_NEVER
+ NETWORK_PREDICTION_NEVER,
+ NETWORK_PREDICTION_UNSET,
};
mmenke 2014/06/26 20:41:02 Suggest moving these into the new file, since they
Bence 2014/06/27 15:11:50 Cf. https://codereview.chromium.org/336543003#msg2
Bence 2014/06/27 18:26:45 Done.
// A version number for prefs that are saved. This should be incremented when

Powered by Google App Engine
This is Rietveld 408576698