Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: third_party/WebKit/Source/modules/fetch/DataConsumerTee.h

Issue 2277143002: Use BytesConsumer in BodyStreamBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bytes-consumer-tee
Patch Set: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef DataConsumerTee_h
6 #define DataConsumerTee_h
7
8 #include "modules/ModulesExport.h"
9 #include "modules/fetch/FetchDataConsumerHandle.h"
10 #include "public/platform/WebDataConsumerHandle.h"
11 #include "wtf/Allocator.h"
12 #include <memory>
13
14 namespace blink {
15
16 class ExecutionContext;
17
18 class MODULES_EXPORT DataConsumerTee {
19 STATIC_ONLY(DataConsumerTee);
20 public:
21 // Create two handles from one. |src| must be a valid unlocked handle.
22 static void create(ExecutionContext*, std::unique_ptr<WebDataConsumerHandle> src, std::unique_ptr<WebDataConsumerHandle>* dest1, std::unique_ptr<WebDataCons umerHandle>* dest2);
23 static void create(ExecutionContext*, std::unique_ptr<FetchDataConsumerHandl e> src, std::unique_ptr<FetchDataConsumerHandle>* dest1, std::unique_ptr<FetchDa taConsumerHandle>* dest2);
24 };
25
26 } // namespace blink
27
28 #endif // DataConsumerTee_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698