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

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

Issue 1287103002: [Extension ServiceWorkers] Blink: Passing v8::context to extensions dispatcher (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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/bindings/core/v8/WorkerScriptController.h
diff --git a/Source/bindings/core/v8/WorkerScriptController.h b/Source/bindings/core/v8/WorkerScriptController.h
index ecc540e5704110327c6c70de74f1080026605033..d1d53603909094705d540d55e650af3b81f4ca66 100644
--- a/Source/bindings/core/v8/WorkerScriptController.h
+++ b/Source/bindings/core/v8/WorkerScriptController.h
@@ -86,10 +86,11 @@ public:
RejectedPromises* rejectedPromises() const { return m_rejectedPromises.get(); }
+ bool isContextInitialized() { return m_scriptState && !!m_scriptState->perContextData(); }
kinuko (google) 2015/08/17 10:27:20 nit: this could probably be a const method
annekao 2015/08/17 19:47:41 Done.
+
private:
class WorkerGlobalScopeExecutionState;
- bool isContextInitialized() { return m_scriptState && !!m_scriptState->perContextData(); }
v8::Isolate* isolate() const;
// Evaluate a script file in the current execution environment.
« no previous file with comments | « no previous file | Source/core/workers/WorkerReportingProxy.h » ('j') | Source/web/ServiceWorkerGlobalScopeProxy.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698