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

Side by Side Diff: chrome/common/extensions/feature_switch.h

Issue 11150002: New post-sideload UI: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: !!! Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/common/extensions/feature_switch.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_EXTENSIONS_FEATURE_SWITCH_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_FEATURE_SWITCH_H_
6 #define CHROME_COMMON_EXTENSIONS_FEATURE_SWITCH_H_ 6 #define CHROME_COMMON_EXTENSIONS_FEATURE_SWITCH_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 11
12 class CommandLine; 12 class CommandLine;
13 13
14 namespace extensions { 14 namespace extensions {
15 15
16 // A switch that can turn a feature on or off. Typically controlled via 16 // A switch that can turn a feature on or off. Typically controlled via
17 // command-line switches but can be overridden, e.g., for testing. 17 // command-line switches but can be overridden, e.g., for testing.
18 class FeatureSwitch { 18 class FeatureSwitch {
19 public: 19 public:
20 static FeatureSwitch* action_box(); 20 static FeatureSwitch* action_box();
21 static FeatureSwitch* easy_off_store_install(); 21 static FeatureSwitch* easy_off_store_install();
22 static FeatureSwitch* extensions_in_action_box(); 22 static FeatureSwitch* extensions_in_action_box();
23 static FeatureSwitch* script_badges(); 23 static FeatureSwitch* script_badges();
24 static FeatureSwitch* script_bubble(); 24 static FeatureSwitch* script_bubble();
25 static FeatureSwitch* prompt_for_external_extensions();
25 26
26 enum DefaultValue { 27 enum DefaultValue {
27 DEFAULT_ENABLED, 28 DEFAULT_ENABLED,
28 DEFAULT_DISABLED 29 DEFAULT_DISABLED
29 }; 30 };
30 31
31 enum OverrideValue { 32 enum OverrideValue {
32 OVERRIDE_NONE, 33 OVERRIDE_NONE,
33 OVERRIDE_ENABLED, 34 OVERRIDE_ENABLED,
34 OVERRIDE_DISABLED 35 OVERRIDE_DISABLED
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 const char* switch_name_; 70 const char* switch_name_;
70 bool default_value_; 71 bool default_value_;
71 OverrideValue override_value_; 72 OverrideValue override_value_;
72 73
73 DISALLOW_COPY_AND_ASSIGN(FeatureSwitch); 74 DISALLOW_COPY_AND_ASSIGN(FeatureSwitch);
74 }; 75 };
75 76
76 } // namespace extensions 77 } // namespace extensions
77 78
78 #endif // CHROME_COMMON_EXTENSIONS_FEATURE_SWITCH_H_ 79 #endif // CHROME_COMMON_EXTENSIONS_FEATURE_SWITCH_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/common/extensions/feature_switch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698