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, |