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

Side by Side Diff: extensions/common/features/behavior_feature.h

Issue 2418353002: Allow interfaceClass USB device permissions (Closed)
Patch Set: . Created 4 years, 1 month 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 | « extensions/common/extension_messages.h ('k') | extensions/common/features/behavior_feature.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_COMMON_FEATURES_BEHAVIOR_FEATURE_H_ 5 #ifndef EXTENSIONS_COMMON_FEATURES_BEHAVIOR_FEATURE_H_
6 #define EXTENSIONS_COMMON_FEATURES_BEHAVIOR_FEATURE_H_ 6 #define EXTENSIONS_COMMON_FEATURES_BEHAVIOR_FEATURE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "extensions/common/features/simple_feature.h" 10 #include "extensions/common/features/simple_feature.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 // Implementation of the features in _behavior_features.json. 14 // Implementation of the features in _behavior_features.json.
15 // 15 //
16 // For now, this is just constants + a vacuous implementation of SimpleFeature, 16 // For now, this is just constants + a vacuous implementation of SimpleFeature,
17 // for consistency with the other Feature types. One day we may add some 17 // for consistency with the other Feature types. One day we may add some
18 // additional functionality. One day we may also generate the feature names. 18 // additional functionality. One day we may also generate the feature names.
19 class BehaviorFeature : public SimpleFeature { 19 class BehaviorFeature : public SimpleFeature {
20 public: 20 public:
21 // Constants corresponding to keys in _behavior_features.json. 21 // Constants corresponding to keys in _behavior_features.json.
22 static const char kWhitelistedForIncognito[]; 22 static const char kWhitelistedForIncognito[];
23 static const char kDoNotSync[]; 23 static const char kDoNotSync[];
24 static const char kZoomWithoutBubble[]; 24 static const char kZoomWithoutBubble[];
25 static const char kAllowUsbDevicesPermissionInterfaceClass[];
25 }; 26 };
26 27
27 } // namespace extensions 28 } // namespace extensions
28 29
29 #endif // EXTENSIONS_COMMON_FEATURES_BEHAVIOR_FEATURE_H_ 30 #endif // EXTENSIONS_COMMON_FEATURES_BEHAVIOR_FEATURE_H_
OLDNEW
« no previous file with comments | « extensions/common/extension_messages.h ('k') | extensions/common/features/behavior_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698