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

Unified Diff: content/browser/permissions/permission_service_impl.h

Issue 1260193009: renderer: implement multiple permission requesting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permissions-request-multiple
Patch Set: Split off all browser sections Created 5 years, 3 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/browser/permissions/permission_service_impl.h
diff --git a/content/browser/permissions/permission_service_impl.h b/content/browser/permissions/permission_service_impl.h
index a6d120cd8be515c6dad0afbab3c6510ee53d2a51..b83a6973f06692f8f8df961a9041465194f47abf 100644
--- a/content/browser/permissions/permission_service_impl.h
+++ b/content/browser/permissions/permission_service_impl.h
@@ -40,6 +40,8 @@ class PermissionServiceImpl : public PermissionService {
private:
using PermissionStatusCallback = mojo::Callback<void(PermissionStatus)>;
+ using PermissionsStatusCallback =
+ mojo::Callback<void(mojo::Array<PermissionStatus>)>;
struct PendingRequest {
PendingRequest(PermissionType permission, const GURL& origin,
@@ -73,6 +75,10 @@ class PermissionServiceImpl : public PermissionService {
const mojo::String& origin,
bool user_gesture,
const PermissionStatusCallback& callback) override;
+ void RequestPermissions(mojo::Array<PermissionName> permissions,
+ const mojo::String& origin,
+ bool user_gesture,
+ const PermissionsStatusCallback& callback) override;
void RevokePermission(PermissionName permission,
const mojo::String& origin,
const PermissionStatusCallback& callback) override;

Powered by Google App Engine
This is Rietveld 408576698