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

Unified Diff: content/child/permissions/permission_dispatcher_thread_proxy.cc

Issue 1260193009: renderer: implement multiple permission requesting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permissions-request-multiple
Patch Set: Address review comments 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/child/permissions/permission_dispatcher_thread_proxy.cc
diff --git a/content/child/permissions/permission_dispatcher_thread_proxy.cc b/content/child/permissions/permission_dispatcher_thread_proxy.cc
index 2407d3e59391252ef18e7b1bce4ac5bb64efcea4..01c4a8c38157b7995a0ac26eb79bf6341b8641d4 100644
--- a/content/child/permissions/permission_dispatcher_thread_proxy.cc
+++ b/content/child/permissions/permission_dispatcher_thread_proxy.cc
@@ -82,6 +82,20 @@ void PermissionDispatcherThreadProxy::requestPermission(
WorkerTaskRunner::Instance()->CurrentWorkerId()));
}
+void PermissionDispatcherThreadProxy::requestPermissions(
+ const blink::WebVector<blink::WebPermissionType>& types,
+ const blink::WebURL& origin,
+ blink::WebPermissionsCallback* callback) {
+ main_thread_task_runner_->PostTask(
+ FROM_HERE,
+ base::Bind(&PermissionDispatcher::RequestPermissionsForWorker,
+ base::Unretained(permission_dispatcher_),
+ types,
+ origin.string().utf8(),
+ base::Unretained(callback),
+ WorkerTaskRunner::Instance()->CurrentWorkerId()));
+}
+
void PermissionDispatcherThreadProxy::revokePermission(
blink::WebPermissionType type,
const blink::WebURL& origin,
« no previous file with comments | « content/child/permissions/permission_dispatcher_thread_proxy.h ('k') | content/common/permission_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698