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

Unified Diff: Source/core/inspector/V8AsyncCallTracker.h

Issue 818673004: Explicitly dispose of async call chains. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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/core/inspector/InspectorDebuggerAgent.cpp ('k') | Source/core/inspector/V8AsyncCallTracker.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/V8AsyncCallTracker.h
diff --git a/Source/core/inspector/V8AsyncCallTracker.h b/Source/core/inspector/V8AsyncCallTracker.h
index 5bcb357f3a914b5b11076a8363a2313b2daa2465..a654164377a9c312dae279e50d77233b331b32ac 100644
--- a/Source/core/inspector/V8AsyncCallTracker.h
+++ b/Source/core/inspector/V8AsyncCallTracker.h
@@ -21,7 +21,11 @@ class V8AsyncCallTracker final : public NoBaseWillBeGarbageCollectedFinalized<V8
WTF_MAKE_NONCOPYABLE(V8AsyncCallTracker);
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(V8AsyncCallTracker);
public:
- explicit V8AsyncCallTracker(InspectorDebuggerAgent*);
+ static PassOwnPtrWillBeRawPtr<V8AsyncCallTracker> create(InspectorDebuggerAgent* debuggerAgent)
+ {
+ return adoptPtrWillBeNoop(new V8AsyncCallTracker(debuggerAgent));
+ }
+
~V8AsyncCallTracker();
void trace(Visitor*);
@@ -35,6 +39,8 @@ public:
void willDisposeScriptState(ScriptState*) override;
private:
+ explicit V8AsyncCallTracker(InspectorDebuggerAgent*);
+
void didEnqueueV8AsyncTask(ScriptState*, const String& eventName, int id);
void willHandleV8AsyncTask(ScriptState*, const String& eventName, int id);
« no previous file with comments | « Source/core/inspector/InspectorDebuggerAgent.cpp ('k') | Source/core/inspector/V8AsyncCallTracker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698