diff options
Diffstat (limited to 'chrome/common/extensions/extension.h')
-rw-r--r-- | chrome/common/extensions/extension.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h index 7969e96..1452014 100644 --- a/chrome/common/extensions/extension.h +++ b/chrome/common/extensions/extension.h @@ -62,6 +62,15 @@ class Extension { static const char* kPermissionNames[]; static const size_t kNumPermissions; + // A classification of how dangerous an extension can be, based on what it has + // access to. + enum PermissionClass { + PERMISSION_CLASS_LOW = 0, // green + PERMISSION_CLASS_MEDIUM, // yellow + PERMISSION_CLASS_HIGH, // orange + PERMISSION_CLASS_FULL, // red + }; + // An NPAPI plugin included in the extension. struct PluginInfo { FilePath path; // Path to the plugin. @@ -205,6 +214,8 @@ class Extension { // the browser might load (like themes and page action icons). std::set<FilePath> GetBrowserImages(); + PermissionClass GetPermissionClass(); + // Runtime data: // Put dynamic data about the state of a running extension below. |