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

Unified Diff: Source/core/streams/UnderlyingSource.h

Issue 407453002: ReadableStream initial implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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/streams/ReadableStreamTest.cpp ('k') | Source/web/tests/WebUnitTests.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..60c3fb38a6b1337970d1a57139fbc498126a57c2
--- /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 blink {
+
+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 blink
+
+#endif // UnderlyingSource_h
+
« no previous file with comments | « Source/core/streams/ReadableStreamTest.cpp ('k') | Source/web/tests/WebUnitTests.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698