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

Unified Diff: Source/bindings/v8/WorkerScriptController.h

Issue 270873005: Initializes the context of WorkerScriptController before calling willEvaluateWorkerScript. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add isExecutionForbidden check Created 6 years, 7 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 | « no previous file | Source/core/workers/WorkerThread.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/WorkerScriptController.h
diff --git a/Source/bindings/v8/WorkerScriptController.h b/Source/bindings/v8/WorkerScriptController.h
index 3625bc530e8dc36fbf2fc2b24aa1cb4b63ed2e66..2559269fdd0763cad733b96f11961866d39727fa 100644
--- a/Source/bindings/v8/WorkerScriptController.h
+++ b/Source/bindings/v8/WorkerScriptController.h
@@ -68,6 +68,8 @@ namespace WebCore {
WorkerGlobalScope& workerGlobalScope() { return m_workerGlobalScope; }
+ bool initializeContextIfNeeded();
+
void evaluate(const ScriptSourceCode&, RefPtrWillBeRawPtr<ErrorEvent>* = 0);
void rethrowExceptionFromImportedScript(PassRefPtrWillBeRawPtr<ErrorEvent>);
@@ -101,9 +103,8 @@ namespace WebCore {
// until real work has been done.
bool idleNotification() { return v8::V8::IdleNotification(); }
- private:
- bool initializeContextIfNeeded();
+ private:
v8::Isolate* m_isolate;
WorkerGlobalScope& m_workerGlobalScope;
RefPtr<ScriptState> m_scriptState;
« no previous file with comments | « no previous file | Source/core/workers/WorkerThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698