Index: Source/core/inspector/AsyncCallStackTracker.h |
diff --git a/Source/core/inspector/AsyncCallStackTracker.h b/Source/core/inspector/AsyncCallStackTracker.h |
index 27abc29df47e9dd29554194b29469a141fe74d12..c631e9170cca22cd831cabcf58cc14a49bf544f5 100644 |
--- a/Source/core/inspector/AsyncCallStackTracker.h |
+++ b/Source/core/inspector/AsyncCallStackTracker.h |
@@ -49,7 +49,7 @@ class ExecutionContextTask; |
class MutationObserver; |
class XMLHttpRequest; |
-class AsyncCallStackTracker { |
+class AsyncCallStackTracker : public NoBaseWillBeGarbageCollectedFinalized<AsyncCallStackTracker> { |
WTF_MAKE_NONCOPYABLE(AsyncCallStackTracker); |
public: |
class AsyncCallStack FINAL : public RefCountedWillBeGarbageCollectedFinalized<AsyncCallStack> { |
@@ -117,6 +117,8 @@ public: |
void didFireAsyncCall(); |
void clear(); |
+ void trace(Visitor*); |
+ |
private: |
void willHandleXHREvent(XMLHttpRequest*, Event*); |
@@ -130,9 +132,9 @@ private: |
ExecutionContextData* createContextDataIfNeeded(ExecutionContext*); |
unsigned m_maxAsyncCallStackDepth; |
- RefPtrWillBePersistent<AsyncCallChain> m_currentAsyncCallChain; |
+ RefPtrWillBeMember<AsyncCallChain> m_currentAsyncCallChain; |
unsigned m_nestedAsyncCallCount; |
- typedef HashMap<ExecutionContext*, ExecutionContextData*> ExecutionContextDataMap; |
+ typedef WillBeHeapHashMap<ExecutionContext*, OwnPtrWillBeMember<ExecutionContextData> > ExecutionContextDataMap; |
haraken
2014/08/11 10:59:59
ExecutionContext is on-heap, so you can use a Memb
keishi
2014/08/11 13:01:45
Done.
|
ExecutionContextDataMap m_executionContextDataMap; |
}; |