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

Side by Side Diff: Source/modules/fetch/Body.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
« no previous file with comments | « Source/core/streams/ReadableStreamTest.cpp ('k') | Source/modules/fetch/Body.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 Body_h 5 #ifndef Body_h
6 #define Body_h 6 #define Body_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptPromiseResolver.h" 9 #include "bindings/core/v8/ScriptPromiseResolver.h"
10 #include "bindings/core/v8/ScriptWrappable.h" 10 #include "bindings/core/v8/ScriptWrappable.h"
11 #include "core/dom/ActiveDOMObject.h" 11 #include "core/dom/ActiveDOMObject.h"
12 #include "core/fileapi/FileReaderLoader.h" 12 #include "core/fileapi/FileReaderLoader.h"
13 #include "core/fileapi/FileReaderLoaderClient.h" 13 #include "core/fileapi/FileReaderLoaderClient.h"
14 #include "core/streams/ReadableStreamImpl.h" 14 #include "core/streams/ReadableStreamImpl.h"
15 #include "platform/blob/BlobData.h" 15 #include "platform/blob/BlobData.h"
16 #include "platform/heap/Handle.h" 16 #include "platform/heap/Handle.h"
17 #include "wtf/RefPtr.h" 17 #include "wtf/RefPtr.h"
18 18
19 namespace blink { 19 namespace blink {
20 20
21 class BodyStreamBuffer; 21 class BodyStreamBuffer;
22 class ExclusiveStreamReader; 22 class ReadableStreamReader;
23 class ScriptState; 23 class ScriptState;
24 24
25 class Body 25 class Body
26 : public GarbageCollectedFinalized<Body> 26 : public GarbageCollectedFinalized<Body>
27 , public ScriptWrappable 27 , public ScriptWrappable
28 , public ActiveDOMObject 28 , public ActiveDOMObject
29 , public FileReaderLoaderClient { 29 , public FileReaderLoaderClient {
30 DEFINE_WRAPPERTYPEINFO(); 30 DEFINE_WRAPPERTYPEINFO();
31 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Body); 31 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Body);
32 public: 32 public:
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 virtual String contentTypeForBuffer() const = 0; 95 virtual String contentTypeForBuffer() const = 0;
96 96
97 void didFinishLoadingViaStream(PassRefPtr<DOMArrayBuffer>); 97 void didFinishLoadingViaStream(PassRefPtr<DOMArrayBuffer>);
98 98
99 OwnPtr<FileReaderLoader> m_loader; 99 OwnPtr<FileReaderLoader> m_loader;
100 bool m_bodyUsed; 100 bool m_bodyUsed;
101 ResponseType m_responseType; 101 ResponseType m_responseType;
102 RefPtrWillBeMember<ScriptPromiseResolver> m_resolver; 102 RefPtrWillBeMember<ScriptPromiseResolver> m_resolver;
103 Member<ReadableStreamSource> m_streamSource; 103 Member<ReadableStreamSource> m_streamSource;
104 Member<ReadableStreamImpl<ReadableStreamChunkTypeTraits<DOMArrayBuffer>>> m_ stream; 104 Member<ReadableStreamImpl<ReadableStreamChunkTypeTraits<DOMArrayBuffer>>> m_ stream;
105 Member<ExclusiveStreamReader> m_streamReader; 105 Member<ReadableStreamReader> m_streamReader;
106 }; 106 };
107 107
108 } // namespace blink 108 } // namespace blink
109 109
110 #endif // Body_h 110 #endif // Body_h
OLDNEW
« no previous file with comments | « Source/core/streams/ReadableStreamTest.cpp ('k') | Source/modules/fetch/Body.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698