Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(433)

Unified Diff: extensions/common/permissions/api_permission_set.h

Issue 1300353002: Make USB permissions work in the new permission message system (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kill_permissionmessage
Patch Set: review Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/common/permissions/api_permission.h ('k') | extensions/common/permissions/api_permission_set.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/permissions/api_permission_set.h
diff --git a/extensions/common/permissions/api_permission_set.h b/extensions/common/permissions/api_permission_set.h
index 476ad13ab88d78da762946b386336b6cc0f3a80f..43b97ec0289453dec2f93f1874c3f38ebab23e21 100644
--- a/extensions/common/permissions/api_permission_set.h
+++ b/extensions/common/permissions/api_permission_set.h
@@ -136,6 +136,13 @@ class PermissionIDSet {
// Check if the set contains permissions with all the given IDs.
bool ContainsAllIDs(const std::set<APIPermission::ID>& permission_ids) const;
+ // Check if the set contains any permission with one of the given IDs.
+ bool ContainsAnyID(const std::set<APIPermission::ID>& permission_ids) const;
+
+ // Returns all the permissions in this set with the given ID.
+ PermissionIDSet GetAllPermissionsWithID(
+ APIPermission::ID permission_id) const;
+
// Returns all the permissions in this set with one of the given IDs.
PermissionIDSet GetAllPermissionsWithIDs(
const std::set<APIPermission::ID>& permission_ids) const;
« no previous file with comments | « extensions/common/permissions/api_permission.h ('k') | extensions/common/permissions/api_permission_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698