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

Unified Diff: third_party/WebKit/Source/core/streams/ReadableStreamReader.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/core/streams/ReadableStreamReader.h
diff --git a/third_party/WebKit/Source/core/streams/ReadableStreamReader.h b/third_party/WebKit/Source/core/streams/ReadableStreamReader.h
deleted file mode 100644
index 3c79ea904ed17aab311e3dc570624a6627caacd6..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/streams/ReadableStreamReader.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ReadableStreamReader_h
-#define ReadableStreamReader_h
-
-#include "bindings/core/v8/ActiveScriptWrappable.h"
-#include "bindings/core/v8/ScriptPromise.h"
-#include "bindings/core/v8/ScriptPromiseProperty.h"
-#include "bindings/core/v8/ScriptValue.h"
-#include "bindings/core/v8/ScriptWrappable.h"
-#include "bindings/core/v8/ToV8.h"
-#include "core/CoreExport.h"
-#include "core/dom/ActiveDOMObject.h"
-#include "core/streams/ReadableStream.h"
-#include "platform/heap/Handle.h"
-
-namespace blink {
-
-class DOMException;
-class ExceptionState;
-class ExecutionContext;
-class ScriptState;
-
-// ReadableStreamReader corresponds to the same-name class in the Streams spec
-// https://streams.spec.whatwg.org/.
-class CORE_EXPORT ReadableStreamReader final : public GarbageCollectedFinalized<ReadableStreamReader>, public ScriptWrappable, public ActiveScriptWrappable, public ActiveDOMObject {
- DEFINE_WRAPPERTYPEINFO();
- USING_GARBAGE_COLLECTED_MIXIN(ReadableStreamReader);
-public:
- // The stream must not be locked to any ReadableStreamReader when called.
- ReadableStreamReader(ExecutionContext*, ReadableStream*);
-
- ScriptPromise closed(ScriptState*);
- bool isActive() const;
- ScriptPromise cancel(ScriptState*);
- ScriptPromise cancel(ScriptState*, ScriptValue reason);
- ScriptPromise read(ScriptState*);
- void releaseLock(ExceptionState&);
- void releaseLock();
- void close();
- void error();
-
- bool hasPendingActivity() const final;
- void stop() override;
-
- DECLARE_TRACE();
-
-private:
- using ClosedPromise = ScriptPromiseProperty<Member<ReadableStreamReader>, ToV8UndefinedGenerator, Member<DOMException>>;
-
- const Member<ReadableStream> m_stream;
- Member<ClosedPromise> m_closed;
-};
-
-} // namespace blink
-
-#endif // ReadableStreamReader_h

Powered by Google App Engine
This is Rietveld 408576698