| 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 ScriptAsyncCallStack_h | 5 #ifndef ScriptAsyncCallStack_h |
| 6 #define ScriptAsyncCallStack_h | 6 #define ScriptAsyncCallStack_h |
| 7 | 7 |
| 8 #include "core/inspector/ScriptCallStack.h" | 8 #include "core/inspector/ScriptCallStack.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "wtf/Forward.h" | 10 #include "wtf/Forward.h" |
| 11 #include "wtf/RefCounted.h" | 11 #include "wtf/RefCounted.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class ScriptAsyncCallStack : public RefCounted<ScriptAsyncCallStack> { | 15 class ScriptAsyncCallStack : public RefCounted<ScriptAsyncCallStack> { |
| 16 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ScriptAsyncCallStack); | 16 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ScriptAsyncCallStack); |
| 17 public: | 17 public: |
| 18 static PassRefPtr<ScriptAsyncCallStack> create(const String&, PassRefPtr<Scr
iptCallStack>, PassRefPtr<ScriptAsyncCallStack>); | 18 static PassRefPtr<ScriptAsyncCallStack> create(const String&, PassRefPtr<Scr
iptCallStack>, PassRefPtr<ScriptAsyncCallStack>); |
| 19 | 19 |
| 20 void trace(Visitor*); | |
| 21 | |
| 22 private: | 20 private: |
| 23 ScriptAsyncCallStack(const String&, PassRefPtr<ScriptCallStack>, PassRefPtr<
ScriptAsyncCallStack>); | 21 ScriptAsyncCallStack(const String&, PassRefPtr<ScriptCallStack>, PassRefPtr<
ScriptAsyncCallStack>); |
| 24 | 22 |
| 25 String m_description; | 23 String m_description; |
| 26 RefPtr<ScriptCallStack> m_callStack; | 24 RefPtr<ScriptCallStack> m_callStack; |
| 27 RefPtr<ScriptAsyncCallStack> m_asyncStackTrace; | 25 RefPtr<ScriptAsyncCallStack> m_asyncStackTrace; |
| 28 }; | 26 }; |
| 29 | 27 |
| 30 } // namespace blink | 28 } // namespace blink |
| 31 | 29 |
| 32 #endif // ScriptAsyncCallStack_h | 30 #endif // ScriptAsyncCallStack_h |
| OLD | NEW |