summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings/js/ScriptHeapSnapshot.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/bindings/js/ScriptHeapSnapshot.h')
-rw-r--r--WebCore/bindings/js/ScriptHeapSnapshot.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/WebCore/bindings/js/ScriptHeapSnapshot.h b/WebCore/bindings/js/ScriptHeapSnapshot.h
index c81c782..4c3d915 100644
--- a/WebCore/bindings/js/ScriptHeapSnapshot.h
+++ b/WebCore/bindings/js/ScriptHeapSnapshot.h
@@ -38,15 +38,22 @@ namespace WebCore {
class ScriptHeapSnapshot : public RefCounted<ScriptHeapSnapshot> {
public:
- virtual ~ScriptHeapSnapshot() {}
+ class OutputStream {
+ public:
+ virtual ~OutputStream() { }
+ virtual void Write(const String& chunk) = 0;
+ virtual void Close() = 0;
+ };
+
+ virtual ~ScriptHeapSnapshot() { }
String title() const { return ""; }
unsigned int uid() const { return 0; }
- PassRefPtr<InspectorObject> buildInspectorObjectForHead() const { return InspectorObject::create(); }
+ void writeJSON(OutputStream*) { }
private:
- ScriptHeapSnapshot() {}
+ ScriptHeapSnapshot() { }
};
} // namespace WebCore