OLD | NEW |
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" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 virtual PassRefPtr<BlobDataHandle> blobDataHandle() const = 0; | 88 virtual PassRefPtr<BlobDataHandle> blobDataHandle() const = 0; |
89 virtual BodyStreamBuffer* buffer() const = 0; | 89 virtual BodyStreamBuffer* buffer() const = 0; |
90 virtual String contentTypeForBuffer() const = 0; | 90 virtual String contentTypeForBuffer() const = 0; |
91 | 91 |
92 void didFinishLoadingViaStream(DOMArrayBuffer*); | 92 void didFinishLoadingViaStream(DOMArrayBuffer*); |
93 | 93 |
94 OwnPtr<FileReaderLoader> m_loader; | 94 OwnPtr<FileReaderLoader> m_loader; |
95 bool m_bodyUsed; | 95 bool m_bodyUsed; |
96 bool m_streamAccessed; | 96 bool m_streamAccessed; |
97 ResponseType m_responseType; | 97 ResponseType m_responseType; |
98 RefPtr<ScriptPromiseResolver> m_resolver; | 98 RefPtrWillBeMember<ScriptPromiseResolver> m_resolver; |
99 Member<ReadableStreamSource> m_streamSource; | 99 Member<ReadableStreamSource> m_streamSource; |
100 Member<ReadableStreamImpl<ReadableStreamChunkTypeTraits<DOMArrayBuffer>>> m_
stream; | 100 Member<ReadableStreamImpl<ReadableStreamChunkTypeTraits<DOMArrayBuffer>>> m_
stream; |
101 }; | 101 }; |
102 | 102 |
103 } // namespace blink | 103 } // namespace blink |
104 | 104 |
105 #endif // Body_h | 105 #endif // Body_h |
OLD | NEW |