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

Unified Diff: Source/core/inspector/ScriptProfile.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/JavaScriptCallFrame.cpp ('k') | Source/core/inspector/ScriptProfileNode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/ScriptProfile.h
diff --git a/Source/core/inspector/ScriptProfile.h b/Source/core/inspector/ScriptProfile.h
index de864129ad1419b87d9ebbd1327e5b4a696335eb..e2ee6b623f2809ee0b44b96cac7368a81be3e8be 100644
--- a/Source/core/inspector/ScriptProfile.h
+++ b/Source/core/inspector/ScriptProfile.h
@@ -32,6 +32,7 @@
#define ScriptProfile_h
#include "InspectorTypeBuilder.h"
+#include "bindings/v8/ScriptWrappable.h"
#include "core/inspector/ScriptProfileNode.h"
#include "wtf/RefCounted.h"
#include "wtf/text/WTFString.h"
@@ -44,7 +45,7 @@ namespace WebCore {
class InspectorObject;
-class ScriptProfile : public RefCounted<ScriptProfile> {
+class ScriptProfile : public RefCounted<ScriptProfile>, public ScriptWrappable {
public:
static PassRefPtr<ScriptProfile> create(const v8::CpuProfile* profile, double idleTime)
{
@@ -64,7 +65,9 @@ private:
ScriptProfile(const v8::CpuProfile* profile, double idleTime)
: m_profile(profile)
, m_idleTime(idleTime)
- {}
+ {
+ ScriptWrappable::init(this);
+ }
const v8::CpuProfile* m_profile;
double m_idleTime;
« no previous file with comments | « Source/core/inspector/JavaScriptCallFrame.cpp ('k') | Source/core/inspector/ScriptProfileNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698