| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 BlobBytesConsumer_h | 5 #ifndef BlobBytesConsumer_h |
| 6 #define BlobBytesConsumer_h | 6 #define BlobBytesConsumer_h |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include "core/dom/ContextLifecycleObserver.h" | 9 #include "core/dom/ContextLifecycleObserver.h" |
| 9 #include "core/loader/ThreadableLoaderClient.h" | 10 #include "core/loader/ThreadableLoaderClient.h" |
| 10 #include "modules/ModulesExport.h" | 11 #include "modules/ModulesExport.h" |
| 11 #include "modules/fetch/BytesConsumer.h" | 12 #include "modules/fetch/BytesConsumer.h" |
| 12 #include "platform/heap/Handle.h" | 13 #include "platform/heap/Handle.h" |
| 13 #include "wtf/PassRefPtr.h" | 14 #include "wtf/PassRefPtr.h" |
| 14 #include "wtf/RefPtr.h" | 15 #include "wtf/RefPtr.h" |
| 15 #include <memory> | |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 class BlobDataHandle; | 19 class BlobDataHandle; |
| 20 class EncodedFormData; | 20 class EncodedFormData; |
| 21 class ExecutionContext; | 21 class ExecutionContext; |
| 22 class ThreadableLoader; | 22 class ThreadableLoader; |
| 23 class WebDataConsumerHandle; | 23 class WebDataConsumerHandle; |
| 24 | 24 |
| 25 // A BlobBytesConsumer is created from a blob handle and it will | 25 // A BlobBytesConsumer is created from a blob handle and it will |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 PublicState m_state = PublicState::ReadableOrWaiting; | 88 PublicState m_state = PublicState::ReadableOrWaiting; |
| 89 // These two booleans are meaningful only when m_state is ReadableOrWaiting. | 89 // These two booleans are meaningful only when m_state is ReadableOrWaiting. |
| 90 bool m_hasSeenEndOfData = false; | 90 bool m_hasSeenEndOfData = false; |
| 91 bool m_hasFinishedLoading = false; | 91 bool m_hasFinishedLoading = false; |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 } // namespace blink | 94 } // namespace blink |
| 95 | 95 |
| 96 #endif // BlobBytesConsumer_h | 96 #endif // BlobBytesConsumer_h |
| OLD | NEW |