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

Unified Diff: Source/web/WebWorkerClientImpl.cpp

Issue 50773002: Introduce WebWorkerPermissionClientProxy to deprecate WorkerAllowMainThreadBridge (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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: Source/web/WebWorkerClientImpl.cpp
diff --git a/Source/web/WebWorkerClientImpl.cpp b/Source/web/WebWorkerClientImpl.cpp
index 0f00a1545af8ae0a54d4ce94441523ee2b5be915..93c8d3a398f7c1385009ea93319f4d525a3beabd 100644
--- a/Source/web/WebWorkerClientImpl.cpp
+++ b/Source/web/WebWorkerClientImpl.cpp
@@ -44,8 +44,11 @@
#include "WebPermissionClient.h"
#include "WebViewImpl.h"
#include "WorkerFileSystemClient.h"
+#include "WorkerPermissionClient.h"
#include "public/platform/WebString.h"
+#include "public/web/WebFrameClient.h"
#include "public/web/WebSecurityOrigin.h"
+#include "public/web/WebWorkerPermissionClientProxy.h"
using namespace WebCore;
@@ -61,6 +64,7 @@ WorkerGlobalScopeProxy* WebWorkerClientImpl::createWorkerGlobalScopeProxy(Worker
WebFrameImpl* webFrame = WebFrameImpl::fromFrame(document->frame());
OwnPtr<WorkerClients> workerClients = WorkerClients::create();
provideLocalFileSystemToWorker(workerClients.get(), WorkerFileSystemClient::create());
+ providePermissionClientToWorker(workerClients.get(), adoptPtr(webFrame->client()->createWorkerPermissionClientProxy(webFrame)));
WebWorkerClientImpl* proxy = new WebWorkerClientImpl(worker, webFrame, workerClients.release());
return proxy;
}

Powered by Google App Engine
This is Rietveld 408576698