| 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 #include "modules/fetch/BytesConsumer.h" | 5 #include "modules/fetch/BytesConsumer.h" |
| 6 | 6 |
| 7 #include <string.h> |
| 8 #include <algorithm> |
| 7 #include "core/dom/ExecutionContext.h" | 9 #include "core/dom/ExecutionContext.h" |
| 8 #include "core/dom/TaskRunnerHelper.h" | 10 #include "core/dom/TaskRunnerHelper.h" |
| 9 #include "modules/fetch/BlobBytesConsumer.h" | 11 #include "modules/fetch/BlobBytesConsumer.h" |
| 10 #include "platform/WebTaskRunner.h" | 12 #include "platform/WebTaskRunner.h" |
| 11 #include "platform/blob/BlobData.h" | 13 #include "platform/blob/BlobData.h" |
| 12 #include "wtf/Functional.h" | 14 #include "platform/wtf/Functional.h" |
| 13 #include "wtf/RefPtr.h" | 15 #include "platform/wtf/RefPtr.h" |
| 14 #include <algorithm> | |
| 15 #include <string.h> | |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 class NoopClient final : public GarbageCollectedFinalized<NoopClient>, | 21 class NoopClient final : public GarbageCollectedFinalized<NoopClient>, |
| 22 public BytesConsumer::Client { | 22 public BytesConsumer::Client { |
| 23 USING_GARBAGE_COLLECTED_MIXIN(NoopClient); | 23 USING_GARBAGE_COLLECTED_MIXIN(NoopClient); |
| 24 | 24 |
| 25 public: | 25 public: |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 | 367 |
| 368 BytesConsumer* BytesConsumer::CreateErrored(const BytesConsumer::Error& error) { | 368 BytesConsumer* BytesConsumer::CreateErrored(const BytesConsumer::Error& error) { |
| 369 return new ErroredBytesConsumer(error); | 369 return new ErroredBytesConsumer(error); |
| 370 } | 370 } |
| 371 | 371 |
| 372 BytesConsumer* BytesConsumer::CreateClosed() { | 372 BytesConsumer* BytesConsumer::CreateClosed() { |
| 373 return new ClosedBytesConsumer(); | 373 return new ClosedBytesConsumer(); |
| 374 } | 374 } |
| 375 | 375 |
| 376 } // namespace blink | 376 } // namespace blink |
| OLD | NEW |