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

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

Issue 1506023003: Response construction with a ReadableStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 d79b5cce24af4d41018c10caa32bd078d9fcd1de..103363e7d9dc78e53bffb33bc11f2ae1a0ef7f4f 100644
--- a/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp
+++ b/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp
@@ -145,6 +145,12 @@ bool BodyStreamBuffer::hasPendingActivity() const
return m_loader || (m_stream->isLocked() && m_stream->stateInternal() == ReadableStream::Readable);
}
+void BodyStreamBuffer::stop()
+{
+ m_reader = nullptr;
+ m_handle = nullptr;
+}
+
void BodyStreamBuffer::pullSource()
{
ASSERT(!m_streamNeedsMore);

Powered by Google App Engine
This is Rietveld 408576698