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

Side by Side Diff: Source/core/streams/ReadableStreamImpl.h

Issue 1001233002: Streams Implementation Update: Reader name and Stream methods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ReadableStreamImpl_h 5 #ifndef ReadableStreamImpl_h
6 #define ReadableStreamImpl_h 6 #define ReadableStreamImpl_h
7 7
8 #include "bindings/core/v8/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
9 #include "bindings/core/v8/ScriptState.h" 9 #include "bindings/core/v8/ScriptState.h"
10 #include "bindings/core/v8/ScriptValue.h" 10 #include "bindings/core/v8/ScriptValue.h"
11 #include "bindings/core/v8/V8ArrayBuffer.h" 11 #include "bindings/core/v8/V8ArrayBuffer.h"
12 #include "bindings/core/v8/V8Binding.h" 12 #include "bindings/core/v8/V8Binding.h"
13 #include "core/dom/DOMArrayBuffer.h" 13 #include "core/dom/DOMArrayBuffer.h"
14 #include "core/streams/ReadableStream.h" 14 #include "core/streams/ReadableStream.h"
15 #include "wtf/Deque.h" 15 #include "wtf/Deque.h"
16 #include "wtf/RefPtr.h" 16 #include "wtf/RefPtr.h"
17 #include "wtf/text/WTFString.h" 17 #include "wtf/text/WTFString.h"
18 #include <utility> 18 #include <utility>
19 19
20 namespace blink { 20 namespace blink {
21 21
22 class ExclusiveStreamReader; 22 class ReadableStreamReader;
tyoshino (SeeGerritForStatus) 2015/03/17 05:14:40 not used?
yhirano 2015/03/17 05:24:16 Done.
23 // We define the default ChunkTypeTraits for frequently used types. 23 // We define the default ChunkTypeTraits for frequently used types.
24 template<typename ChunkType> 24 template<typename ChunkType>
25 class ReadableStreamChunkTypeTraits { }; 25 class ReadableStreamChunkTypeTraits { };
26 26
27 template<> 27 template<>
28 class ReadableStreamChunkTypeTraits<String> { 28 class ReadableStreamChunkTypeTraits<String> {
29 public: 29 public:
30 typedef String HoldType; 30 typedef String HoldType;
31 typedef const String& PassType; 31 typedef const String& PassType;
32 32
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 ASSERT(queue.isEmpty()); 154 ASSERT(queue.isEmpty());
155 155
156 queue.swap(m_queue); 156 queue.swap(m_queue);
157 m_totalQueueSize = 0; 157 m_totalQueueSize = 0;
158 readInternalPostAction(); 158 readInternalPostAction();
159 } 159 }
160 160
161 } // namespace blink 161 } // namespace blink
162 162
163 #endif // ReadableStreamImpl_h 163 #endif // ReadableStreamImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698