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

Side by Side Diff: third_party/WebKit/Source/core/streams/ReadableByteStream.h

Issue 1404523005: Implement author-constructible ReadableStream using V8 extras (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor test tweaks Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ReadableByteStream_h 5 #ifndef ReadableByteStream_h
6 #define ReadableByteStream_h 6 #define ReadableByteStream_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/streams/ReadableStreamImpl.h" 10 #include "core/streams/ReadableStreamImpl.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class DOMArrayBufferView; 14 class DOMArrayBufferView;
15 class ExceptionState; 15 class ExceptionState;
16 class ExecutionContext; 16 class ExecutionContext;
17 class ReadableByteStreamReader; 17 class ReadableByteStreamReader;
18 class ScriptState; 18 class ScriptState;
19 class Strategy; 19 class Strategy;
20 class UnderlyingSource; 20 class UnderlyingSource;
21 21
22 class CORE_EXPORT ReadableByteStream : public ReadableStreamImpl<ReadableStreamC hunkTypeTraits<DOMArrayBufferView>> { 22 class CORE_EXPORT ReadableByteStream : public ReadableStreamImpl<ReadableStreamC hunkTypeTraits<DOMArrayBufferView>>, public ScriptWrappable {
23 DEFINE_WRAPPERTYPEINFO(); 23 DEFINE_WRAPPERTYPEINFO();
24 public: 24 public:
25 explicit ReadableByteStream(UnderlyingSource* source) : ReadableStreamImpl<R eadableStreamChunkTypeTraits<DOMArrayBufferView>>(source) { } 25 explicit ReadableByteStream(UnderlyingSource* source) : ReadableStreamImpl<R eadableStreamChunkTypeTraits<DOMArrayBufferView>>(source) { }
26 ReadableByteStream(UnderlyingSource* source, Strategy* strategy) : ReadableS treamImpl<ReadableStreamChunkTypeTraits<DOMArrayBufferView>>(source, strategy) { } 26 ReadableByteStream(UnderlyingSource* source, Strategy* strategy) : ReadableS treamImpl<ReadableStreamChunkTypeTraits<DOMArrayBufferView>>(source, strategy) { }
27 27
28 ReadableByteStreamReader* getBytesReader(ExecutionContext*, ExceptionState&) ; 28 ReadableByteStreamReader* getBytesReader(ExecutionContext*, ExceptionState&) ;
29 }; 29 };
30 30
31 } // namespace blink 31 } // namespace blink
32 32
33 #endif // ReadableByteStream_h 33 #endif // ReadableByteStream_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/streams/README.md ('k') | third_party/WebKit/Source/core/streams/ReadableStream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698