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

Unified Diff: Source/web/WebEmbeddedWorkerImpl.h

Issue 383063008: Expose the ServiceWorker's v8 context to embedders. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Add a test and some comments 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.h
diff --git a/Source/web/WebEmbeddedWorkerImpl.h b/Source/web/WebEmbeddedWorkerImpl.h
index 9ac972b452eff7b24645445231795403c4cc6683..cf52a7d66e5c07eee7a9e603c5f497f712ea3095 100644
--- a/Source/web/WebEmbeddedWorkerImpl.h
+++ b/Source/web/WebEmbeddedWorkerImpl.h
@@ -37,6 +37,7 @@
#include "public/web/WebFrameClient.h"
namespace WebCore {
+class ExecutionContextTask;
class WorkerScriptLoader;
class WorkerThread;
}
@@ -57,6 +58,9 @@ public:
PassOwnPtr<WebWorkerPermissionClientProxy>);
virtual ~WebEmbeddedWorkerImpl();
+ // Posts the task to the worker thread, where it can safely access the worker's v8 context.
+ void postTask(PassOwnPtr<WebCore::ExecutionContextTask>);
+
// WebEmbeddedWorker overrides.
virtual void startWorkerContext(const WebEmbeddedWorkerStartData&) OVERRIDE;
virtual void resumeAfterDownload() OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698