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

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

Issue 847803002: Make ScriptStreamer and dependents Oilpan friendly. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add ScriptSourceCode::isNull() comment Created 5 years, 11 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/core/v8/V8PerIsolateData.cpp ('k') | Source/bindings/core/v8/WorkerScriptDebugServer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/WorkerScriptDebugServer.h
diff --git a/Source/bindings/core/v8/WorkerScriptDebugServer.h b/Source/bindings/core/v8/WorkerScriptDebugServer.h
index 9d603eb71d2c3024c2202f12e8cf25cc06acc766..5dace4b8bb22661a371d80287ced93c11a360e0f 100644
--- a/Source/bindings/core/v8/WorkerScriptDebugServer.h
+++ b/Source/bindings/core/v8/WorkerScriptDebugServer.h
@@ -41,8 +41,13 @@ class WorkerGlobalScope;
class WorkerScriptDebugServer final : public ScriptDebugServer {
WTF_MAKE_NONCOPYABLE(WorkerScriptDebugServer);
public:
- explicit WorkerScriptDebugServer(WorkerGlobalScope*);
+ static PassOwnPtrWillBeRawPtr<WorkerScriptDebugServer> create(WorkerGlobalScope* workerGlobalScope)
+ {
+ return adoptPtrWillBeNoop(new WorkerScriptDebugServer(workerGlobalScope));
+ }
+
~WorkerScriptDebugServer() override { }
+ void trace(Visitor*) override;
void addListener(ScriptDebugListener*);
void removeListener(ScriptDebugListener*);
@@ -50,13 +55,14 @@ public:
void interruptAndRunTask(PassOwnPtr<Task>);
private:
+ explicit WorkerScriptDebugServer(WorkerGlobalScope*);
+
ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Context>) override;
void runMessageLoopOnPause(v8::Handle<v8::Context>) override;
void quitMessageLoopOnPause() override;
- typedef HashMap<WorkerGlobalScope*, ScriptDebugListener*> ListenersMap;
ScriptDebugListener* m_listener;
- WorkerGlobalScope* m_workerGlobalScope;
+ RawPtrWillBeMember<WorkerGlobalScope> m_workerGlobalScope;
};
} // namespace blink
« no previous file with comments | « Source/bindings/core/v8/V8PerIsolateData.cpp ('k') | Source/bindings/core/v8/WorkerScriptDebugServer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698