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

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

Issue 422273002: Oilpan: Prepare moving AsyncCallStackTracker to Oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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/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;
};
« no previous file with comments | « no previous file | Source/core/inspector/AsyncCallStackTracker.cpp » ('j') | Source/core/inspector/AsyncCallStackTracker.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698