| OLD | NEW |
| 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_FEATURES_FEATURE_H_ | 5 #ifndef EXTENSIONS_COMMON_FEATURES_FEATURE_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_FEATURES_FEATURE_H_ | 6 #define EXTENSIONS_COMMON_FEATURES_FEATURE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| 12 #include "chrome/common/extensions/manifest.h" | 12 #include "extensions/common/manifest.h" |
| 13 | 13 |
| 14 class GURL; | 14 class GURL; |
| 15 | 15 |
| 16 namespace extensions { | 16 namespace extensions { |
| 17 | 17 |
| 18 class Extension; | 18 class Extension; |
| 19 | 19 |
| 20 // Represents a single feature accessible to an extension developer, such as a | 20 // Represents a single feature accessible to an extension developer, such as a |
| 21 // top-level manifest key, a permission, or a programmatic API. A feature can | 21 // top-level manifest key, a permission, or a programmatic API. A feature can |
| 22 // express requirements for where it can be accessed, and supports testing | 22 // express requirements for where it can be accessed, and supports testing |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 virtual bool IsIdInWhitelist(const std::string& extension_id) const = 0; | 145 virtual bool IsIdInWhitelist(const std::string& extension_id) const = 0; |
| 146 | 146 |
| 147 protected: | 147 protected: |
| 148 std::string name_; | 148 std::string name_; |
| 149 std::set<std::string> dependencies_; | 149 std::set<std::string> dependencies_; |
| 150 bool no_parent_; | 150 bool no_parent_; |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 } // namespace extensions | 153 } // namespace extensions |
| 154 | 154 |
| 155 #endif // CHROME_COMMON_EXTENSIONS_FEATURES_FEATURE_H_ | 155 #endif // EXTENSIONS_COMMON_FEATURES_FEATURE_H_ |
| OLD | NEW |