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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // FetchDataLoader::Client functions. | 91 // FetchDataLoader::Client functions. |
92 void didFetchDataLoadFailed() override; | 92 void didFetchDataLoadFailed() override; |
93 void didFetchDataLoadedBlobHandle(PassRefPtr<BlobDataHandle>) override; | 93 void didFetchDataLoadedBlobHandle(PassRefPtr<BlobDataHandle>) override; |
94 void didFetchDataLoadedArrayBuffer(PassRefPtr<DOMArrayBuffer>) override; | 94 void didFetchDataLoadedArrayBuffer(PassRefPtr<DOMArrayBuffer>) override; |
95 void didFetchDataLoadedString(const String&) override; | 95 void didFetchDataLoadedString(const String&) override; |
96 | 96 |
97 virtual String mimeType() const = 0; | 97 virtual String mimeType() const = 0; |
98 | 98 |
99 bool m_bodyUsed; | 99 bool m_bodyUsed; |
100 ResponseType m_responseType; | 100 ResponseType m_responseType; |
101 RefPtrWillBeMember<ScriptPromiseResolver> m_resolver; | 101 Member<ScriptPromiseResolver> m_resolver; |
102 Member<ReadableStreamSource> m_streamSource; | 102 Member<ReadableStreamSource> m_streamSource; |
103 Member<ReadableByteStream> m_stream; | 103 Member<ReadableByteStream> m_stream; |
104 }; | 104 }; |
105 | 105 |
106 } // namespace blink | 106 } // namespace blink |
107 | 107 |
108 #endif // Body_h | 108 #endif // Body_h |
OLD | NEW |