Chromium Code Reviews| Index: Source/core/inspector/ScriptCallStack.h |
| diff --git a/Source/core/inspector/ScriptCallStack.h b/Source/core/inspector/ScriptCallStack.h |
| index 077167c7b1f6aa89ce267df60c93cf04f87e06cb..7b602349cd1ed6674e815ce170187b8cd83aaf40 100644 |
| --- a/Source/core/inspector/ScriptCallStack.h |
| +++ b/Source/core/inspector/ScriptCallStack.h |
| @@ -33,27 +33,28 @@ |
| #include "InspectorTypeBuilder.h" |
| #include "core/inspector/ScriptCallFrame.h" |
| +#include "platform/heap/Handle.h" |
| #include "wtf/Forward.h" |
| #include "wtf/RefCounted.h" |
| #include "wtf/Vector.h" |
| namespace WebCore { |
| -class ScriptCallStack : public RefCounted<ScriptCallStack> { |
| +class ScriptCallStack : public RefCountedWillBeGarbageCollectedFinalized<ScriptCallStack> { |
| public: |
| static const size_t maxCallStackSizeToCapture = 200; |
| - static PassRefPtr<ScriptCallStack> create(Vector<ScriptCallFrame>&); |
| - |
| - ~ScriptCallStack(); |
|
haraken
2014/06/11 06:27:36
Shall we use DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOV
keishi
2014/06/11 14:40:55
Done.
|
| + static PassRefPtrWillBeRawPtr<ScriptCallStack> create(Vector<ScriptCallFrame>&); |
| const ScriptCallFrame &at(size_t) const; |
| size_t size() const; |
| PassRefPtr<TypeBuilder::Array<TypeBuilder::Console::CallFrame> > buildInspectorArray() const; |
| + void trace(Visitor*) { } |
| + |
| private: |
| - ScriptCallStack(Vector<ScriptCallFrame>&); |
| + explicit ScriptCallStack(Vector<ScriptCallFrame>&); |
| Vector<ScriptCallFrame> m_frames; |
| }; |