OLD | NEW |
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_COMPLEX_FEATURE_H_ | 5 #ifndef EXTENSIONS_COMMON_FEATURES_COMPLEX_FEATURE_H_ |
6 #define EXTENSIONS_COMMON_FEATURES_COMPLEX_FEATURE_H_ | 6 #define EXTENSIONS_COMMON_FEATURES_COMPLEX_FEATURE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
| 12 #include "base/macros.h" |
12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
13 #include "extensions/common/extension.h" | 14 #include "extensions/common/extension.h" |
14 #include "extensions/common/features/feature.h" | 15 #include "extensions/common/features/feature.h" |
15 #include "extensions/common/manifest.h" | 16 #include "extensions/common/manifest.h" |
16 | 17 |
17 namespace extensions { | 18 namespace extensions { |
18 | 19 |
19 // A ComplexFeature is composed of one or many Features. A ComplexFeature | 20 // A ComplexFeature is composed of one or many Features. A ComplexFeature |
20 // is available if any Feature (i.e. permission rule) that composes it is | 21 // is available if any Feature (i.e. permission rule) that composes it is |
21 // available, but not if only some combination of Features is available. | 22 // available, but not if only some combination of Features is available. |
(...skipping 30 matching lines...) Expand all Loading... |
52 | 53 |
53 private: | 54 private: |
54 FeatureList features_; | 55 FeatureList features_; |
55 | 56 |
56 DISALLOW_COPY_AND_ASSIGN(ComplexFeature); | 57 DISALLOW_COPY_AND_ASSIGN(ComplexFeature); |
57 }; | 58 }; |
58 | 59 |
59 } // namespace extensions | 60 } // namespace extensions |
60 | 61 |
61 #endif // EXTENSIONS_COMMON_FEATURES_COMPLEX_FEATURE_H_ | 62 #endif // EXTENSIONS_COMMON_FEATURES_COMPLEX_FEATURE_H_ |
OLD | NEW |