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

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

Issue 2356693002: Remove BytesConsumer::read (Closed)
Patch Set: fix 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.h
diff --git a/third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.h b/third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.h
index e3efa6d30cd47c247ac347e3733f31c10185ffa8..ec6fef46b40f86a7913e0c844d6bd040c824045a 100644
--- a/third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.h
+++ b/third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.h
@@ -83,27 +83,6 @@ public:
bool m_isCancelled = false;
};
- class Reader final : public GarbageCollectedFinalized<Reader>, public BytesConsumer::Client {
- USING_GARBAGE_COLLECTED_MIXIN(Reader);
- public:
- // |consumer| must not have a client when called.
- explicit Reader(BytesConsumer* /* consumer */);
-
- void onStateChange() override;
- std::pair<BytesConsumer::Result, Vector<char>> run();
-
- DEFINE_INLINE_TRACE()
- {
- visitor->trace(m_consumer);
- BytesConsumer::Client::trace(visitor);
- }
-
- private:
- Member<BytesConsumer> m_consumer;
- BytesConsumer::Result m_result = BytesConsumer::Result::ShouldWait;
- Vector<char> m_data;
- };
-
class TwoPhaseReader final : public GarbageCollectedFinalized<TwoPhaseReader>, public BytesConsumer::Client {
USING_GARBAGE_COLLECTED_MIXIN(TwoPhaseReader);
public:

Powered by Google App Engine
This is Rietveld 408576698