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

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

Issue 796863002: Oilpan: fix build after r186944. (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 | « no previous file | Source/core/inspector/InspectorDebuggerAgent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/AsyncCallStackTracker.cpp
diff --git a/Source/core/inspector/AsyncCallStackTracker.cpp b/Source/core/inspector/AsyncCallStackTracker.cpp
index ae2910bcd51e4dd63669f7958473f65372ea89cb..f899e041ec14d62c1432c7bfbab0c78c3a105b8c 100644
--- a/Source/core/inspector/AsyncCallStackTracker.cpp
+++ b/Source/core/inspector/AsyncCallStackTracker.cpp
@@ -60,8 +60,9 @@ namespace blink {
template <class K>
class AsyncCallStackTracker::AsyncCallChainMap final {
+ ALLOW_ONLY_INLINE_ALLOCATION();
public:
- typedef HashMap<K, RefPtr<AsyncCallStackTracker::AsyncCallChain> > MapType;
+ using MapType = WillBeHeapHashMap<K, RefPtrWillBeMember<AsyncCallStackTracker::AsyncCallChain>>;
explicit AsyncCallChainMap(AsyncCallStackTracker* tracker) : m_tracker(tracker) { }
~AsyncCallChainMap()
@@ -97,11 +98,16 @@ public:
void remove(typename MapType::KeyPeekInType key)
{
- RefPtr<AsyncCallStackTracker::AsyncCallChain> chain = m_asyncCallChains.take(key);
+ RefPtrWillBeRawPtr<AsyncCallStackTracker::AsyncCallChain> chain = m_asyncCallChains.take(key);
if (chain && m_tracker->m_listener)
m_tracker->m_listener->didRemoveAsyncCallChain(chain.get());
}
+ void trace(Visitor* visitor)
+ {
+ visitor->trace(m_asyncCallChains);
+ }
+
private:
AsyncCallStackTracker* m_tracker;
MapType m_asyncCallChains;
« no previous file with comments | « no previous file | Source/core/inspector/InspectorDebuggerAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698