| 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 BytesConsumerForDataConsumerHandle_h | 5 #ifndef BytesConsumerForDataConsumerHandle_h |
| 6 #define BytesConsumerForDataConsumerHandle_h | 6 #define BytesConsumerForDataConsumerHandle_h |
| 7 | 7 |
| 8 #include "modules/ModulesExport.h" | 8 #include "modules/ModulesExport.h" |
| 9 #include "modules/fetch/BytesConsumer.h" | 9 #include "modules/fetch/BytesConsumer.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| 11 #include "platform/wtf/PassRefPtr.h" |
| 12 #include "platform/wtf/text/WTFString.h" |
| 11 #include "public/platform/WebDataConsumerHandle.h" | 13 #include "public/platform/WebDataConsumerHandle.h" |
| 12 #include "wtf/PassRefPtr.h" | |
| 13 #include "wtf/text/WTFString.h" | |
| 14 | 14 |
| 15 #include <memory> | 15 #include <memory> |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 class ExecutionContext; | 19 class ExecutionContext; |
| 20 | 20 |
| 21 class MODULES_EXPORT BytesConsumerForDataConsumerHandle final | 21 class MODULES_EXPORT BytesConsumerForDataConsumerHandle final |
| 22 : public BytesConsumer, | 22 : public BytesConsumer, |
| 23 public WebDataConsumerHandle::Client { | 23 public WebDataConsumerHandle::Client { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 Member<BytesConsumer::Client> client_; | 59 Member<BytesConsumer::Client> client_; |
| 60 InternalState state_ = InternalState::kWaiting; | 60 InternalState state_ = InternalState::kWaiting; |
| 61 Error error_; | 61 Error error_; |
| 62 bool is_in_two_phase_read_ = false; | 62 bool is_in_two_phase_read_ = false; |
| 63 bool has_pending_notification_ = false; | 63 bool has_pending_notification_ = false; |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } // namespace blink | 66 } // namespace blink |
| 67 | 67 |
| 68 #endif // BytesConsumerForDataConsumerHandle_h | 68 #endif // BytesConsumerForDataConsumerHandle_h |
| OLD | NEW |