| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FEATURE_H_ | 5 #ifndef EXTENSIONS_COMMON_FEATURES_FEATURE_H_ |
| 6 #define EXTENSIONS_COMMON_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 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // The JavaScript contexts the feature is supported in. | 31 // The JavaScript contexts the feature is supported in. |
| 32 enum Context { | 32 enum Context { |
| 33 UNSPECIFIED_CONTEXT, | 33 UNSPECIFIED_CONTEXT, |
| 34 BLESSED_EXTENSION_CONTEXT, | 34 BLESSED_EXTENSION_CONTEXT, |
| 35 UNBLESSED_EXTENSION_CONTEXT, | 35 UNBLESSED_EXTENSION_CONTEXT, |
| 36 CONTENT_SCRIPT_CONTEXT, | 36 CONTENT_SCRIPT_CONTEXT, |
| 37 WEB_PAGE_CONTEXT, | 37 WEB_PAGE_CONTEXT, |
| 38 BLESSED_WEB_PAGE_CONTEXT, | 38 BLESSED_WEB_PAGE_CONTEXT, |
| 39 WEBUI_CONTEXT, | 39 WEBUI_CONTEXT, |
| 40 SERVICE_WORKER_CONTEXT, | 40 SERVICE_WORKER_CONTEXT, |
| 41 LOCK_SCREEN_EXTENSION_CONTEXT, |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 // The platforms the feature is supported in. | 44 // The platforms the feature is supported in. |
| 44 enum Platform { | 45 enum Platform { |
| 45 UNSPECIFIED_PLATFORM, | 46 UNSPECIFIED_PLATFORM, |
| 46 CHROMEOS_PLATFORM, | 47 CHROMEOS_PLATFORM, |
| 47 LINUX_PLATFORM, | 48 LINUX_PLATFORM, |
| 48 MACOSX_PLATFORM, | 49 MACOSX_PLATFORM, |
| 49 WIN_PLATFORM | 50 WIN_PLATFORM |
| 50 }; | 51 }; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 protected: | 154 protected: |
| 154 std::string name_; | 155 std::string name_; |
| 155 std::string alias_; | 156 std::string alias_; |
| 156 std::string source_; | 157 std::string source_; |
| 157 bool no_parent_; | 158 bool no_parent_; |
| 158 }; | 159 }; |
| 159 | 160 |
| 160 } // namespace extensions | 161 } // namespace extensions |
| 161 | 162 |
| 162 #endif // EXTENSIONS_COMMON_FEATURES_FEATURE_H_ | 163 #endif // EXTENSIONS_COMMON_FEATURES_FEATURE_H_ |
| OLD | NEW |