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

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

Issue 325143002: Oilpan: Prepare moving inspector script related classes to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Created 6 years, 6 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
« no previous file with comments | « Source/core/inspector/ScriptArguments.cpp ('k') | Source/core/inspector/ScriptCallStack.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/ScriptCallStack.h
diff --git a/Source/core/inspector/ScriptCallStack.h b/Source/core/inspector/ScriptCallStack.h
index 077167c7b1f6aa89ce267df60c93cf04f87e06cb..dcb9c6a67ede2282f686291cb09d22548deeb62a 100644
--- a/Source/core/inspector/ScriptCallStack.h
+++ b/Source/core/inspector/ScriptCallStack.h
@@ -33,27 +33,29 @@
#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> {
+ DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ScriptCallStack);
public:
static const size_t maxCallStackSizeToCapture = 200;
- static PassRefPtr<ScriptCallStack> create(Vector<ScriptCallFrame>&);
-
- ~ScriptCallStack();
+ 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;
};
« no previous file with comments | « Source/core/inspector/ScriptArguments.cpp ('k') | Source/core/inspector/ScriptCallStack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698