diff options
Diffstat (limited to 'WebCore/bindings/v8/ScriptHeapSnapshot.h')
-rw-r--r-- | WebCore/bindings/v8/ScriptHeapSnapshot.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/WebCore/bindings/v8/ScriptHeapSnapshot.h b/WebCore/bindings/v8/ScriptHeapSnapshot.h index 794a5a9..d3ae022 100644 --- a/WebCore/bindings/v8/ScriptHeapSnapshot.h +++ b/WebCore/bindings/v8/ScriptHeapSnapshot.h @@ -43,6 +43,13 @@ class InspectorObject; class ScriptHeapSnapshot : public RefCounted<ScriptHeapSnapshot> { public: + class OutputStream { + public: + virtual ~OutputStream() { } + virtual void Write(const String& chunk) = 0; + virtual void Close() = 0; + }; + static PassRefPtr<ScriptHeapSnapshot> create(const v8::HeapSnapshot* snapshot) { return adoptRef(new ScriptHeapSnapshot(snapshot)); @@ -51,8 +58,7 @@ public: String title() const; unsigned int uid() const; - - PassRefPtr<InspectorObject> buildInspectorObjectForHead() const; + void writeJSON(OutputStream* stream); private: ScriptHeapSnapshot(const v8::HeapSnapshot* snapshot) |