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

Unified Diff: Source/web/WebEmbeddedWorkerImpl.cpp

Issue 383063008: Expose the ServiceWorker's v8 context to embedders. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Don't #include .cpp files. :-P Created 6 years, 5 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/WebEmbeddedWorkerImpl.cpp
diff --git a/Source/web/WebEmbeddedWorkerImpl.cpp b/Source/web/WebEmbeddedWorkerImpl.cpp
index 3c396de4c8341f4259073035c84d9491fdf29fff..a5d085e8834c6638966c17642cf42089190abc81 100644
--- a/Source/web/WebEmbeddedWorkerImpl.cpp
+++ b/Source/web/WebEmbeddedWorkerImpl.cpp
@@ -169,6 +169,12 @@ WebEmbeddedWorkerImpl::~WebEmbeddedWorkerImpl()
m_mainFrame->close();
}
+void WebEmbeddedWorkerImpl::postTask(PassOwnPtr<ExecutionContextTask> task)
+{
+ // We don't propagate the bool return because |true| doesn't mean the task will be run.
+ m_workerThread->runLoop().postTask(task);
+}
+
void WebEmbeddedWorkerImpl::startWorkerContext(
const WebEmbeddedWorkerStartData& data)
{

Powered by Google App Engine
This is Rietveld 408576698