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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/common/pref_names.h » ('j') | chrome/common/pref_names.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #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.
6 #define CHROME_COMMON_NETWORK_PREDICTION_OPTIONS_H_
7
8 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
9
10 // The same enum must be used by the platform-dependent UI components.
11 // Not used yet, see issue 334602.
12 enum class AllowNetworkPredictionOptions = {
jkarlin 2014/06/13 11:26:39 Remove 'class'. Suggest 'NetworkPredictionOptions
Bence 2014/06/13 13:49:06 Done. Also removed =.
13 ALWAYS,
jkarlin 2014/06/13 11:26:39 NETWORK_PREDICTION_ALWAYS. Most of our enum value
Bence 2014/06/13 13:49:05 Done.
14 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.
15 NEVER
jkarlin 2014/06/13 11:26:40 NETWORK_PREDICTION_NEVER
Bence 2014/06/13 13:49:06 Done.
16 };
17
18 } // 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
19
20 #endif // CHROME_COMMON_NETWORK_PREDICTION_OPTIONS_H_
OLDNEW
« 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