| Index: extensions/common/permissions/permission_set.h
|
| diff --git a/extensions/common/permissions/permission_set.h b/extensions/common/permissions/permission_set.h
|
| index 14ffe12cdab85049fc29a9381218be288b0070eb..e84dc29043171786824ab253131f8d33a70a4023 100644
|
| --- a/extensions/common/permissions/permission_set.h
|
| +++ b/extensions/common/permissions/permission_set.h
|
| @@ -32,10 +32,11 @@ class PermissionSet
|
| PermissionSet();
|
|
|
| // Creates a new permission set based on the specified data: the API
|
| - // permissions, host permissions, and scriptable hosts. The effective hosts
|
| - // of the newly created permission set will be inferred from the given
|
| - // host permissions.
|
| + // permissions, manifest key permissions, host permissions, and scriptable
|
| + // hosts. The effective hosts of the newly created permission set will be
|
| + // inferred from the given host permissions.
|
| PermissionSet(const APIPermissionSet& apis,
|
| + const ManifestPermissionSet& manifest_permissions,
|
| const URLPatternSet& explicit_hosts,
|
| const URLPatternSet& scriptable_hosts);
|
|
|
| @@ -102,6 +103,10 @@ class PermissionSet
|
|
|
| const APIPermissionSet& apis() const { return apis_; }
|
|
|
| + const ManifestPermissionSet& manifest_permissions() const {
|
| + return manifest_permissions_;
|
| + }
|
| +
|
| const URLPatternSet& effective_hosts() const { return effective_hosts_; }
|
|
|
| const URLPatternSet& explicit_hosts() const { return explicit_hosts_; }
|
| @@ -126,6 +131,10 @@ class PermissionSet
|
| // extension APIs and features.
|
| APIPermissionSet apis_;
|
|
|
| + // The manifest key permission list is used when deciding if an extension
|
| + // can access certain extension APIs and features.
|
| + ManifestPermissionSet manifest_permissions_;
|
| +
|
| // The list of hosts that can be accessed directly from the extension.
|
| // TODO(jstritar): Rename to "hosts_"?
|
| URLPatternSet explicit_hosts_;
|
|
|