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

Side by Side Diff: Source/core/streams/UnderlyingSource.h

Issue 455303002: Add 'stream' to XMLHttpRequest response type. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@stream-promise-property-reset
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « Source/core/streams/ReadableStreamTest.cpp ('k') | Source/core/xml/XMLHttpRequest.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UnderlyingSource_h 5 #ifndef UnderlyingSource_h
6 #define UnderlyingSource_h 6 #define UnderlyingSource_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h"
8 #include "bindings/core/v8/ScriptValue.h" 9 #include "bindings/core/v8/ScriptValue.h"
9 #include "platform/heap/Heap.h" 10 #include "platform/heap/Heap.h"
10 11
11 namespace blink { 12 namespace blink {
12 13
13 class ExceptionState; 14 class ExceptionState;
14 class ScriptState; 15 class ScriptState;
15 16
16 class UnderlyingSource : public GarbageCollectedFinalized<UnderlyingSource> { 17 class UnderlyingSource : public GarbageCollectedMixin {
17 public: 18 public:
18 virtual ~UnderlyingSource() { } 19 virtual ~UnderlyingSource() { }
19 20
20 // When startSource fails asynchronously, it must call
21 // ReadableStream::error with a DOM exception.
22 virtual ScriptPromise startSource(ExceptionState*) = 0;
23 virtual void pullSource() = 0; 21 virtual void pullSource() = 0;
24 virtual ScriptPromise cancelSource(ScriptState*, ScriptValue reason) = 0; 22 virtual ScriptPromise cancelSource(ScriptState*, ScriptValue reason) = 0;
25 virtual void trace(Visitor*) { } 23 virtual void trace(Visitor*) { }
26 }; 24 };
27 25
28 } // namespace blink 26 } // namespace blink
29 27
30 #endif // UnderlyingSource_h 28 #endif // UnderlyingSource_h
31 29
OLDNEW
« no previous file with comments | « Source/core/streams/ReadableStreamTest.cpp ('k') | Source/core/xml/XMLHttpRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698