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

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

Issue 2227403002: Remove blink::ReadableStream (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/BodyStreamBuffer.h
diff --git a/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h b/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h
index 403b0b1045a92a5cde93f0de8c777908928b5554..707ab666a98dbd0fffe67e4dab25e2f872145044 100644
--- a/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h
+++ b/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h
@@ -8,9 +8,6 @@
#include "bindings/core/v8/ScriptPromise.h"
#include "bindings/core/v8/ScriptValue.h"
#include "core/dom/DOMException.h"
-#include "core/streams/ReadableByteStream.h"
-#include "core/streams/ReadableByteStreamReader.h"
-#include "core/streams/UnderlyingSource.h"
#include "core/streams/UnderlyingSourceBase.h"
#include "modules/ModulesExport.h"
#include "modules/fetch/FetchDataConsumerHandle.h"
@@ -24,7 +21,7 @@ namespace blink {
class EncodedFormData;
class ScriptState;
-class MODULES_EXPORT BodyStreamBuffer final : public UnderlyingSourceBase, public UnderlyingSource, public WebDataConsumerHandle::Client {
+class MODULES_EXPORT BodyStreamBuffer final : public UnderlyingSourceBase, public WebDataConsumerHandle::Client {
WTF_MAKE_NONCOPYABLE(BodyStreamBuffer);
USING_GARBAGE_COLLECTED_MIXIN(BodyStreamBuffer);
public:
@@ -45,10 +42,6 @@ public:
void startLoading(FetchDataLoader*, FetchDataLoader::Client* /* client */);
void tee(BodyStreamBuffer**, BodyStreamBuffer**);
- // UnderlyingSource
- void pullSource() override;
- ScriptPromise cancelSource(ScriptState*, ScriptValue reason) override;
-
// UnderlyingSourceBase
ScriptPromise pull(ScriptState*) override;
ScriptPromise cancel(ScriptState*, ScriptValue reason) override;
@@ -68,10 +61,8 @@ public:
DEFINE_INLINE_TRACE()
{
- visitor->trace(m_stream);
visitor->trace(m_loader);
UnderlyingSourceBase::trace(visitor);
- UnderlyingSource::trace(visitor);
}
private:
@@ -87,7 +78,6 @@ private:
RefPtr<ScriptState> m_scriptState;
std::unique_ptr<FetchDataConsumerHandle> m_handle;
std::unique_ptr<FetchDataConsumerHandle::Reader> m_reader;
- Member<ReadableByteStream> m_stream;
// We need this member to keep it alive while loading.
Member<FetchDataLoader> m_loader;
bool m_streamNeedsMore = false;

Powered by Google App Engine
This is Rietveld 408576698