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 BodyStreamBuffer_h | 5 #ifndef BodyStreamBuffer_h |
6 #define BodyStreamBuffer_h | 6 #define BodyStreamBuffer_h |
7 | 7 |
| 8 #include <memory> |
8 #include "bindings/core/v8/ScriptPromise.h" | 9 #include "bindings/core/v8/ScriptPromise.h" |
9 #include "bindings/core/v8/ScriptValue.h" | 10 #include "bindings/core/v8/ScriptValue.h" |
10 #include "core/dom/DOMException.h" | 11 #include "core/dom/DOMException.h" |
11 #include "core/streams/UnderlyingSourceBase.h" | 12 #include "core/streams/UnderlyingSourceBase.h" |
12 #include "modules/ModulesExport.h" | 13 #include "modules/ModulesExport.h" |
13 #include "modules/fetch/BytesConsumer.h" | 14 #include "modules/fetch/BytesConsumer.h" |
14 #include "modules/fetch/FetchDataLoader.h" | 15 #include "modules/fetch/FetchDataLoader.h" |
15 #include "platform/heap/Handle.h" | 16 #include "platform/heap/Handle.h" |
16 #include "public/platform/WebDataConsumerHandle.h" | 17 #include "public/platform/WebDataConsumerHandle.h" |
17 #include <memory> | |
18 | 18 |
19 namespace blink { | 19 namespace blink { |
20 | 20 |
21 class EncodedFormData; | 21 class EncodedFormData; |
22 class ScriptState; | 22 class ScriptState; |
23 | 23 |
24 class MODULES_EXPORT BodyStreamBuffer final : public UnderlyingSourceBase, | 24 class MODULES_EXPORT BodyStreamBuffer final : public UnderlyingSourceBase, |
25 public BytesConsumer::Client { | 25 public BytesConsumer::Client { |
26 WTF_MAKE_NONCOPYABLE(BodyStreamBuffer); | 26 WTF_MAKE_NONCOPYABLE(BodyStreamBuffer); |
27 USING_GARBAGE_COLLECTED_MIXIN(BodyStreamBuffer); | 27 USING_GARBAGE_COLLECTED_MIXIN(BodyStreamBuffer); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 Member<BytesConsumer> m_consumer; | 81 Member<BytesConsumer> m_consumer; |
82 // We need this member to keep it alive while loading. | 82 // We need this member to keep it alive while loading. |
83 Member<FetchDataLoader> m_loader; | 83 Member<FetchDataLoader> m_loader; |
84 bool m_streamNeedsMore = false; | 84 bool m_streamNeedsMore = false; |
85 bool m_madeFromReadableStream; | 85 bool m_madeFromReadableStream; |
86 }; | 86 }; |
87 | 87 |
88 } // namespace blink | 88 } // namespace blink |
89 | 89 |
90 #endif // BodyStreamBuffer_h | 90 #endif // BodyStreamBuffer_h |
OLD | NEW |