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

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

Issue 2552203007: Public Sessions - prompt the user for pageCapture requests (Closed)
Patch Set: Copy callbacks to be invoked, move prompt deletion (had a crash) Created 3 years, 10 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
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 36d6f0edbc22fefebfd1698b7d8b8cdb9ee1dfab..89649ab9219dc2c4ee6d72685f6e8317f2c25e1b 100644
--- a/extensions/common/permissions/api_permission_set.h
+++ b/extensions/common/permissions/api_permission_set.h
@@ -116,6 +116,7 @@ class PermissionIDSet {
using const_iterator = std::set<PermissionID>::const_iterator;
PermissionIDSet();
+ PermissionIDSet(const std::initializer_list<APIPermission::ID>& permissions);
PermissionIDSet(const PermissionIDSet& other);
virtual ~PermissionIDSet();
@@ -132,6 +133,7 @@ class PermissionIDSet {
std::vector<base::string16> GetAllPermissionParameters() const;
// Check if the set contains a permission with the given ID.
+ bool ContainsID(PermissionID permission_id) const;
bool ContainsID(APIPermission::ID permission_id) const;
// Check if the set contains permissions with all the given IDs.
@@ -139,6 +141,7 @@ class PermissionIDSet {
// Check if the set contains any permission with one of the given IDs.
bool ContainsAnyID(const std::set<APIPermission::ID>& permission_ids) const;
+ bool ContainsAnyID(const PermissionIDSet& other) const;
// Returns all the permissions in this set with the given ID.
PermissionIDSet GetAllPermissionsWithID(

Powered by Google App Engine
This is Rietveld 408576698