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

Unified Diff: chrome/common/network_prediction_options.h

Issue 336543003: Add AllowNetworkPrediction preference name and enum. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | chrome/common/pref_names.h » ('j') | chrome/common/pref_names.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/network_prediction_options.h
diff --git a/chrome/common/network_prediction_options.h b/chrome/common/network_prediction_options.h
new file mode 100644
index 0000000000000000000000000000000000000000..e6a2604a994914be7d2a7d16652d2c5d84ba624e
--- /dev/null
+++ b/chrome/common/network_prediction_options.h
@@ -0,0 +1,20 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_NETWORK_PREDICTION_OPTIONS_H_
jkarlin 2014/06/13 11:26:39 I don't see any other enums for preferences define
Bence 2014/06/13 13:49:06 Done.
+#define CHROME_COMMON_NETWORK_PREDICTION_OPTIONS_H_
+
+namespace {
jkarlin 2014/06/13 11:26:40 Should be 'namespace chrome'. Things in an unname
Bence 2014/06/13 13:49:05 Everything in chrome/browser/net/predictor.h is in
+
+// The same enum must be used by the platform-dependent UI components.
+// Not used yet, see issue 334602.
+enum class AllowNetworkPredictionOptions = {
jkarlin 2014/06/13 11:26:39 Remove 'class'. Suggest 'NetworkPredictionOptions
Bence 2014/06/13 13:49:06 Done. Also removed =.
+ ALWAYS,
jkarlin 2014/06/13 11:26:39 NETWORK_PREDICTION_ALWAYS. Most of our enum value
Bence 2014/06/13 13:49:05 Done.
+ WIFI_ONLY,
jkarlin 2014/06/13 11:26:39 NETWORK_PREDICTION_UNMETERED_ONLY Let's go with U
Bence 2014/06/13 13:49:05 Are we not worried about the inconsistency between
jkarlin 2014/06/13 14:10:40 Yes, that is a good point. Okay, let's keep it.
+ NEVER
jkarlin 2014/06/13 11:26:40 NETWORK_PREDICTION_NEVER
Bence 2014/06/13 13:49:06 Done.
+};
+
+} // namespace
jkarlin 2014/06/13 11:26:40 // namespace chrome
Bence 2014/06/13 13:49:06 Mute: moved to the namespace that is used by every
+
+#endif // CHROME_COMMON_NETWORK_PREDICTION_OPTIONS_H_
« no previous file with comments | « no previous file | chrome/common/pref_names.h » ('j') | chrome/common/pref_names.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698