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

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

Issue 27552003: Have WorkerScriptController::workerGlobalScope return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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 | « Source/bindings/v8/V8Utilities.cpp ('k') | Source/bindings/v8/WorkerScriptController.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 ce2e9e701437e4886fd5b259ee0e61d9ee725b66..47763a4d9e07464dfd7b9a3e00c8c0bd573d2054 100644
--- a/Source/bindings/v8/WorkerScriptController.h
+++ b/Source/bindings/v8/WorkerScriptController.h
@@ -63,10 +63,10 @@ namespace WebCore {
class WorkerScriptController {
public:
- WorkerScriptController(WorkerGlobalScope*);
+ explicit WorkerScriptController(WorkerGlobalScope&);
~WorkerScriptController();
- WorkerGlobalScope* workerGlobalScope() { return m_workerGlobalScope; }
+ WorkerGlobalScope& workerGlobalScope() { return m_workerGlobalScope; }
void evaluate(const ScriptSourceCode&, RefPtr<ErrorEvent>* = 0);
@@ -107,7 +107,7 @@ namespace WebCore {
bool initializeContextIfNeeded();
void disposeContext();
- WorkerGlobalScope* m_workerGlobalScope;
+ WorkerGlobalScope& m_workerGlobalScope;
v8::Isolate* m_isolate;
ScopedPersistent<v8::Context> m_context;
OwnPtr<V8PerContextData> m_perContextData;
« no previous file with comments | « Source/bindings/v8/V8Utilities.cpp ('k') | Source/bindings/v8/WorkerScriptController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698