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

Unified Diff: third_party/WebKit/Source/modules/fetch/BytesConsumer.h

Issue 2269953004: Implment BytesConsumer::tee (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/fetch/BytesConsumer.h
diff --git a/third_party/WebKit/Source/modules/fetch/BytesConsumer.h b/third_party/WebKit/Source/modules/fetch/BytesConsumer.h
index 894cfb71a87de559dfdebbea6fe029f5757c64e2..a4a8525d1d33fa8e544df1f3fd81ceeb8fd3eeb9 100644
--- a/third_party/WebKit/Source/modules/fetch/BytesConsumer.h
+++ b/third_party/WebKit/Source/modules/fetch/BytesConsumer.h
@@ -14,6 +14,8 @@
namespace blink {
+class ExecutionContext;
+
// BytesConsumer represents the "consumer" side of a data pipe. A user
// can read data from it.
//
@@ -139,6 +141,11 @@ public:
// implementation for debug purpose.
virtual String debugName() const = 0;
+ // Creates two BytesConsumer both of which represent the data sequence that
+ // would be read from |src| and store them to |*dest1| and |*dest2|.
+ // |src| must not have a client when called.
+ static void tee(ExecutionContext*, BytesConsumer* src, BytesConsumer** dest1, BytesConsumer** dest2);
+
DEFINE_INLINE_VIRTUAL_TRACE() {}
protected:

Powered by Google App Engine
This is Rietveld 408576698