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

Unified Diff: third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp

Issue 2365853002: Implement ReadableStreamBytesConsumer (Closed)
Patch Set: git cl format Created 4 years, 2 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/BodyStreamBuffer.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp b/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp
index d9a86e010a05913a18f725e1d88cb8b44ab054ea..87ba6a56bcd1c75241d1386e559a6c04ce19fcdf 100644
--- a/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp
+++ b/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp
@@ -14,7 +14,7 @@
#include "modules/fetch/Body.h"
#include "modules/fetch/BytesConsumerForDataConsumerHandle.h"
#include "modules/fetch/DataConsumerHandleUtil.h"
-#include "modules/fetch/ReadableStreamDataConsumerHandle.h"
+#include "modules/fetch/ReadableStreamBytesConsumer.h"
#include "platform/blob/BlobData.h"
#include "platform/network/EncodedFormData.h"
#include <memory>
@@ -372,9 +372,7 @@ BytesConsumer* BodyStreamBuffer::releaseHandle() {
NonThrowableExceptionState exceptionState;
ScriptValue reader = ReadableStreamOperations::getReader(
m_scriptState.get(), stream(), exceptionState);
- return new BytesConsumerForDataConsumerHandle(
- m_scriptState->getExecutionContext(),
- ReadableStreamDataConsumerHandle::create(m_scriptState.get(), reader));
+ return new ReadableStreamBytesConsumer(m_scriptState.get(), reader);
}
// We need to call these before calling closeAndLockAndDisturb.
const bool isClosed = isStreamClosed();

Powered by Google App Engine
This is Rietveld 408576698