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

Side by Side Diff: third_party/WebKit/Source/core/streams/ReadableByteStreamReader.h

Issue 1922763003: Remove unnecessary uses of GarbageCollectedFinalized<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ReadableByteStreamReader_h 5 #ifndef ReadableByteStreamReader_h
6 #define ReadableByteStreamReader_h 6 #define ReadableByteStreamReader_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptValue.h" 9 #include "bindings/core/v8/ScriptValue.h"
10 #include "bindings/core/v8/ScriptWrappable.h" 10 #include "bindings/core/v8/ScriptWrappable.h"
11 #include "core/CoreExport.h" 11 #include "core/CoreExport.h"
12 #include "core/streams/ReadableStreamReader.h" 12 #include "core/streams/ReadableStreamReader.h"
13 #include "platform/heap/Handle.h" 13 #include "platform/heap/Handle.h"
14 14
15 namespace blink { 15 namespace blink {
16 16
17 class ExceptionState; 17 class ExceptionState;
18 class ScriptState; 18 class ScriptState;
19 19
20 class CORE_EXPORT ReadableByteStreamReader final : public GarbageCollectedFinali zed<ReadableByteStreamReader>, public ScriptWrappable { 20 class CORE_EXPORT ReadableByteStreamReader final : public GarbageCollected<Reada bleByteStreamReader>, public ScriptWrappable {
21 DEFINE_WRAPPERTYPEINFO(); 21 DEFINE_WRAPPERTYPEINFO();
22 public: 22 public:
23 explicit ReadableByteStreamReader(ReadableStreamReader* reader) : m_reader(r eader) { } 23 explicit ReadableByteStreamReader(ReadableStreamReader* reader) : m_reader(r eader) { }
24 24
25 ScriptPromise closed(ScriptState* scriptState) { return m_reader->closed(scr iptState); } 25 ScriptPromise closed(ScriptState* scriptState) { return m_reader->closed(scr iptState); }
26 ScriptPromise read(ScriptState* scriptState) { return m_reader->read(scriptS tate); } 26 ScriptPromise read(ScriptState* scriptState) { return m_reader->read(scriptS tate); }
27 ScriptPromise cancel(ScriptState* scriptState) { return m_reader->cancel(scr iptState); } 27 ScriptPromise cancel(ScriptState* scriptState) { return m_reader->cancel(scr iptState); }
28 ScriptPromise cancel(ScriptState* scriptState, ScriptValue reason) { return m_reader->cancel(scriptState, reason); } 28 ScriptPromise cancel(ScriptState* scriptState, ScriptValue reason) { return m_reader->cancel(scriptState, reason); }
29 void releaseLock(ExceptionState& es) { return m_reader->releaseLock(es); } 29 void releaseLock(ExceptionState& es) { return m_reader->releaseLock(es); }
30 void releaseLock() { return m_reader->releaseLock(); } 30 void releaseLock() { return m_reader->releaseLock(); }
31 31
32 DEFINE_INLINE_VIRTUAL_TRACE() 32 DEFINE_INLINE_TRACE()
33 { 33 {
34 visitor->trace(m_reader); 34 visitor->trace(m_reader);
35 } 35 }
36 36
37 private: 37 private:
38 Member<ReadableStreamReader> m_reader; 38 Member<ReadableStreamReader> m_reader;
39 }; 39 };
40 40
41 } // namespace blink 41 } // namespace blink
42 42
43 #endif // ReadableByteStreamReader_h 43 #endif // ReadableByteStreamReader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698