OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/DataConsumerTee.h" | 5 #include "modules/fetch/DataConsumerTee.h" |
6 | 6 |
7 #include "core/dom/ActiveDOMObject.h" | 7 #include "core/dom/ActiveDOMObject.h" |
8 #include "core/dom/ExecutionContext.h" | 8 #include "core/dom/ExecutionContext.h" |
9 #include "modules/fetch/DataConsumerHandleUtil.h" | 9 #include "modules/fetch/DataConsumerHandleUtil.h" |
10 #include "modules/fetch/FetchBlobDataConsumerHandle.h" | 10 #include "modules/fetch/FetchBlobDataConsumerHandle.h" |
11 #include "platform/CrossThreadFunctional.h" | |
12 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
13 #include "public/platform/Platform.h" | 12 #include "public/platform/Platform.h" |
14 #include "public/platform/WebTaskRunner.h" | 13 #include "public/platform/WebTaskRunner.h" |
15 #include "public/platform/WebThread.h" | 14 #include "public/platform/WebThread.h" |
16 #include "public/platform/WebTraceLocation.h" | 15 #include "public/platform/WebTraceLocation.h" |
17 #include "wtf/Deque.h" | 16 #include "wtf/Deque.h" |
18 #include "wtf/Functional.h" | 17 #include "wtf/Functional.h" |
19 #include "wtf/PtrUtil.h" | 18 #include "wtf/PtrUtil.h" |
20 #include "wtf/ThreadSafeRefCounted.h" | 19 #include "wtf/ThreadSafeRefCounted.h" |
21 #include "wtf/ThreadingPrimitives.h" | 20 #include "wtf/ThreadingPrimitives.h" |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 } | 425 } |
427 | 426 |
428 std::unique_ptr<WebDataConsumerHandle> webDest1, webDest2; | 427 std::unique_ptr<WebDataConsumerHandle> webDest1, webDest2; |
429 DataConsumerTee::create(executionContext, static_cast<std::unique_ptr<WebDat
aConsumerHandle>>(std::move(src)), &webDest1, &webDest2); | 428 DataConsumerTee::create(executionContext, static_cast<std::unique_ptr<WebDat
aConsumerHandle>>(std::move(src)), &webDest1, &webDest2); |
430 *dest1 = createFetchDataConsumerHandleFromWebHandle(std::move(webDest1)); | 429 *dest1 = createFetchDataConsumerHandleFromWebHandle(std::move(webDest1)); |
431 *dest2 = createFetchDataConsumerHandleFromWebHandle(std::move(webDest2)); | 430 *dest2 = createFetchDataConsumerHandleFromWebHandle(std::move(webDest2)); |
432 return; | 431 return; |
433 } | 432 } |
434 | 433 |
435 } // namespace blink | 434 } // namespace blink |
OLD | NEW |