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

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

Issue 14918010: Make inspector objects ScriptWrappable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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/ScriptProfile.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/ScriptProfileNode.h
diff --git a/Source/core/inspector/ScriptProfileNode.h b/Source/core/inspector/ScriptProfileNode.h
index d2fb1174ea1b18007352cdff9288154269682380..041c4e4535dcf8706748cf24885a4948b2906e74 100644
--- a/Source/core/inspector/ScriptProfileNode.h
+++ b/Source/core/inspector/ScriptProfileNode.h
@@ -31,6 +31,7 @@
#ifndef ScriptProfileNode_h
#define ScriptProfileNode_h
+#include "bindings/v8/ScriptWrappable.h"
#include "wtf/RefCounted.h"
#include "wtf/text/WTFString.h"
@@ -44,7 +45,7 @@ class ScriptProfileNode;
typedef Vector<RefPtr<ScriptProfileNode> > ProfileNodesList;
-class ScriptProfileNode : public RefCounted<ScriptProfileNode> {
+class ScriptProfileNode : public RefCounted<ScriptProfileNode>, public ScriptWrappable {
public:
static PassRefPtr<ScriptProfileNode> create(const v8::CpuProfileNode* profileNode)
{
@@ -65,7 +66,9 @@ public:
protected:
ScriptProfileNode(const v8::CpuProfileNode* profileNode)
: m_profileNode(profileNode)
- {}
+ {
+ ScriptWrappable::init(this);
+ }
private:
const v8::CpuProfileNode* m_profileNode;
« no previous file with comments | « Source/core/inspector/ScriptProfile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698