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

Unified Diff: content/public/browser/permission_manager.h

Issue 1260193009: renderer: implement multiple permission requesting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permissions-request-multiple
Patch Set: 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
Index: content/public/browser/permission_manager.h
diff --git a/content/public/browser/permission_manager.h b/content/public/browser/permission_manager.h
index 5a2e078718dab32004594a0166f442b26335da50..5e0f16386e16319c22d6ec1f6a8ad551ac7a1ecd 100644
--- a/content/public/browser/permission_manager.h
+++ b/content/public/browser/permission_manager.h
@@ -34,6 +34,15 @@ class CONTENT_EXPORT PermissionManager {
bool user_gesture,
const base::Callback<void(PermissionStatus)>& callback) = 0;
+ using StatusVector = std::vector<PermissionStatus>;
+ virtual void RequestPermissions(
+ const std::vector<PermissionType>& permission,
+ RenderFrameHost* render_frame_host,
+ int request_id,
+ const GURL& requesting_origin,
+ bool user_gesture,
+ const base::Callback<void(const StatusVector&)>& callback) = 0;
+
// Cancels a previously requested permission. The given parameter must match
// the ones passed to the RequestPermission call.
virtual void CancelPermissionRequest(PermissionType permission,
@@ -41,6 +50,12 @@ class CONTENT_EXPORT PermissionManager {
int request_id,
const GURL& requesting_origin) = 0;
+ // Cancels a previously requested batch permission request.
+ // The given parameters must match the ones passed to the
+ // RequestPermission call.
+ virtual void CancelPermissionsRequest(RenderFrameHost* render_frame_host,
+ int request_id) = 0;
mlamouri (slow - plz ping) 2015/08/18 13:37:15 Would it make sense to change CancelPermission to
Lalit Maganti 2015/08/20 14:23:30 In CancelPermission, it is used to retrieve the co
+
// Returns the permission status of a given requesting_origin/embedding_origin
// tuple. This is not taking a RenderFrameHost because the call might happen
// outside of a frame context.
« content/child/permissions/permission_dispatcher.cc ('K') | « content/content_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698