OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef AsyncOperationMap_h | 5 #ifndef AsyncOperationMap_h |
6 #define AsyncOperationMap_h | 6 #define AsyncOperationMap_h |
7 | 7 |
8 #include "core/inspector/v8/V8DebuggerAgent.h" | 8 #include "core/inspector/v8/V8DebuggerAgent.h" |
9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
10 #include "wtf/HashMap.h" | 10 #include "wtf/HashMap.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 void remove(typename MapType::KeyPeekInType key) | 68 void remove(typename MapType::KeyPeekInType key) |
69 { | 69 { |
70 ASSERT(m_debuggerAgent); | 70 ASSERT(m_debuggerAgent); |
71 int operationId = m_asyncOperations.take(key); | 71 int operationId = m_asyncOperations.take(key); |
72 if (operationId) | 72 if (operationId) |
73 m_debuggerAgent->traceAsyncOperationCompleted(operationId); | 73 m_debuggerAgent->traceAsyncOperationCompleted(operationId); |
74 } | 74 } |
75 | 75 |
76 DEFINE_INLINE_TRACE() | 76 DEFINE_INLINE_TRACE() |
77 { | 77 { |
78 visitor->trace(m_debuggerAgent); | |
79 visitor->trace(m_asyncOperations); | 78 visitor->trace(m_asyncOperations); |
80 } | 79 } |
81 | 80 |
82 private: | 81 private: |
83 RawPtrWillBeMember<V8DebuggerAgent> m_debuggerAgent; | 82 V8DebuggerAgent* m_debuggerAgent; |
84 MapType m_asyncOperations; | 83 MapType m_asyncOperations; |
85 }; | 84 }; |
86 | 85 |
87 } // namespace blink | 86 } // namespace blink |
88 | 87 |
89 | 88 |
90 #endif // AsyncOperationMap_h | 89 #endif // AsyncOperationMap_h |
OLD | NEW |