| 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 26 matching lines...) Expand all Loading... |
| 37 // A context from a content script. | 37 // A context from a content script. |
| 38 CONTENT_SCRIPT_CONTEXT, | 38 CONTENT_SCRIPT_CONTEXT, |
| 39 | 39 |
| 40 // A normal web page. This should have an associated URL matching pattern. | 40 // A normal web page. This should have an associated URL matching pattern. |
| 41 WEB_PAGE_CONTEXT, | 41 WEB_PAGE_CONTEXT, |
| 42 | 42 |
| 43 // A web page context which has been blessed by the user. Typically this | 43 // A web page context which has been blessed by the user. Typically this |
| 44 // will be via the installation of a hosted app, so this may host an | 44 // will be via the installation of a hosted app, so this may host an |
| 45 // extension. This is not affected by the URL matching pattern. | 45 // extension. This is not affected by the URL matching pattern. |
| 46 BLESSED_WEB_PAGE_CONTEXT, | 46 BLESSED_WEB_PAGE_CONTEXT, |
| 47 |
| 48 // A page within webui. |
| 49 WEBUI_CONTEXT, |
| 47 }; | 50 }; |
| 48 | 51 |
| 49 // The platforms the feature is supported in. | 52 // The platforms the feature is supported in. |
| 50 enum Platform { | 53 enum Platform { |
| 51 UNSPECIFIED_PLATFORM, | 54 UNSPECIFIED_PLATFORM, |
| 52 CHROMEOS_PLATFORM, | 55 CHROMEOS_PLATFORM, |
| 53 LINUX_PLATFORM, | 56 LINUX_PLATFORM, |
| 54 MACOSX_PLATFORM, | 57 MACOSX_PLATFORM, |
| 55 WIN_PLATFORM | 58 WIN_PLATFORM |
| 56 }; | 59 }; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 virtual bool IsIdInWhitelist(const std::string& extension_id) const = 0; | 156 virtual bool IsIdInWhitelist(const std::string& extension_id) const = 0; |
| 154 | 157 |
| 155 protected: | 158 protected: |
| 156 std::string name_; | 159 std::string name_; |
| 157 bool no_parent_; | 160 bool no_parent_; |
| 158 }; | 161 }; |
| 159 | 162 |
| 160 } // namespace extensions | 163 } // namespace extensions |
| 161 | 164 |
| 162 #endif // EXTENSIONS_COMMON_FEATURES_FEATURE_H_ | 165 #endif // EXTENSIONS_COMMON_FEATURES_FEATURE_H_ |
| OLD | NEW |