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

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
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..2a7c4936b043aa351d3f7bbd2e3d08da54c82056
--- /dev/null
+++ b/Source/core/streams/UnderlyingSource.h
@@ -0,0 +1,24 @@
+// 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 UnderlyingSource : public GarbageCollectedFinalized<UnderlyingSource> {
+public:
+ virtual ~UnderlyingSource() { }
+ virtual ScriptPromise startStream(ExceptionState*) = 0;
+ virtual void pullStream(ExceptionState*) = 0;
+ virtual void cancelStream(ExceptionState*) = 0;
tyoshino (SeeGerritForStatus) 2014/07/18 04:31:40 are these suffixes needed? it looks like Stream is
yhirano 2014/07/18 04:38:54 Yes, they are called by ReadableStream objects. Bu
tyoshino (SeeGerritForStatus) 2014/07/18 04:49:54 Oh, I see. How about did prefix? Hmm, still too si
yhirano 2014/07/18 06:33:37 How about suffixing Source?
tyoshino (SeeGerritForStatus) 2014/07/18 07:14:47 Sounds good
+ virtual void trace(Visitor*) { }
+};
+
+} // namespace WebCore
+
+#endif // #ifndef ReadableStream_h
+

Powered by Google App Engine
This is Rietveld 408576698