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 "core/dom/ExecutionContext.h" | 7 #include "core/dom/ExecutionContext.h" |
8 #include "core/dom/TaskRunnerHelper.h" | 8 #include "core/dom/TaskRunnerHelper.h" |
9 #include "modules/fetch/BlobBytesConsumer.h" | 9 #include "modules/fetch/BlobBytesConsumer.h" |
10 #include "modules/fetch/FetchBlobDataConsumerHandle.h" | |
11 #include "platform/blob/BlobData.h" | 10 #include "platform/blob/BlobData.h" |
12 #include "public/platform/WebTaskRunner.h" | 11 #include "public/platform/WebTaskRunner.h" |
13 #include "wtf/Functional.h" | 12 #include "wtf/Functional.h" |
14 #include "wtf/RefPtr.h" | 13 #include "wtf/RefPtr.h" |
15 #include <algorithm> | 14 #include <algorithm> |
16 #include <string.h> | 15 #include <string.h> |
17 | 16 |
18 namespace blink { | 17 namespace blink { |
19 | 18 |
20 namespace { | 19 namespace { |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 *dest2 = new BlobBytesConsumer(executionContext, blobDataHandle); | 327 *dest2 = new BlobBytesConsumer(executionContext, blobDataHandle); |
329 return; | 328 return; |
330 } | 329 } |
331 | 330 |
332 Tee* tee = new Tee(executionContext, src); | 331 Tee* tee = new Tee(executionContext, src); |
333 *dest1 = tee->destination1(); | 332 *dest1 = tee->destination1(); |
334 *dest2 = tee->destination2(); | 333 *dest2 = tee->destination2(); |
335 } | 334 } |
336 | 335 |
337 } // namespace blink | 336 } // namespace blink |
OLD | NEW |