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

Unified Diff: content/renderer/shared_worker/embedded_shared_worker_stub.cc

Issue 318013002: Implement EmbeddedSharedWorkerPermissionClientProxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« no previous file with comments | « content/renderer/shared_worker/embedded_shared_worker_permission_client_proxy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/shared_worker/embedded_shared_worker_stub.cc
diff --git a/content/renderer/shared_worker/embedded_shared_worker_stub.cc b/content/renderer/shared_worker/embedded_shared_worker_stub.cc
index d2efa0fd56fab403a839c3c4198762031bb4b0e4..5a6236b0871767dd0316268699e9afbfc2e20842 100644
--- a/content/renderer/shared_worker/embedded_shared_worker_stub.cc
+++ b/content/renderer/shared_worker/embedded_shared_worker_stub.cc
@@ -12,7 +12,9 @@
#include "content/child/webmessageportchannel_impl.h"
#include "content/common/worker_messages.h"
#include "content/renderer/render_thread_impl.h"
+#include "content/renderer/shared_worker/embedded_shared_worker_permission_client_proxy.h"
#include "ipc/ipc_message_macros.h"
+#include "third_party/WebKit/public/web/WebSecurityOrigin.h"
#include "third_party/WebKit/public/web/WebSharedWorker.h"
#include "third_party/WebKit/public/web/WebSharedWorkerClient.h"
@@ -153,8 +155,11 @@ EmbeddedSharedWorkerStub::createApplicationCacheHost(
blink::WebWorkerPermissionClientProxy*
EmbeddedSharedWorkerStub::createWorkerPermissionClientProxy(
const blink::WebSecurityOrigin& origin) {
- // TODO(horo): implement this.
- return NULL;
+ return new EmbeddedSharedWorkerPermissionClientProxy(
+ GURL(origin.toString()),
+ origin.isUnique(),
+ route_id_,
+ ChildThread::current()->thread_safe_sender());
}
void EmbeddedSharedWorkerStub::dispatchDevToolsMessage(
« no previous file with comments | « content/renderer/shared_worker/embedded_shared_worker_permission_client_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698