Index: Source/core/streams/UnderlyingSource.h |
diff --git a/Source/core/streams/UnderlyingSource.h b/Source/core/streams/UnderlyingSource.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..03c2058a0de268a5865afb6dae19a97127199eae |
--- /dev/null |
+++ b/Source/core/streams/UnderlyingSource.h |
@@ -0,0 +1,26 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef UnderlyingSource_h |
+#define UnderlyingSource_h |
+ |
+#include "platform/heap/Heap.h" |
+ |
+namespace WebCore { |
+ |
+class ExceptionState; |
+ |
+class UnderlyingSource : public GarbageCollectedFinalized<UnderlyingSource> { |
+public: |
+ virtual ~UnderlyingSource() { } |
+ virtual ScriptPromise startSource(ExceptionState*) = 0; |
+ virtual void pullSource(ExceptionState*) = 0; |
+ virtual void cancelSource(ExceptionState*) = 0; |
+ virtual void trace(Visitor*) { } |
+}; |
+ |
+} // namespace WebCore |
+ |
+#endif // UnderlyingSource_h |
+ |