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

Unified Diff: Source/core/xml/XMLHttpRequest.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/streams/UnderlyingSource.h ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XMLHttpRequest.h
diff --git a/Source/core/xml/XMLHttpRequest.h b/Source/core/xml/XMLHttpRequest.h
index f15701f1db7a3412c571f67f3f715be8f794e935..2e6455e238989d03951ccdc1981a6758eff8784d 100644
--- a/Source/core/xml/XMLHttpRequest.h
+++ b/Source/core/xml/XMLHttpRequest.h
@@ -26,6 +26,7 @@
#include "core/dom/ActiveDOMObject.h"
#include "core/events/EventListener.h"
#include "core/loader/ThreadableLoaderClient.h"
+#include "core/streams/ReadableStreamImpl.h"
#include "core/xml/XMLHttpRequestEventTarget.h"
#include "core/xml/XMLHttpRequestProgressEventThrottle.h"
#include "platform/heap/Handle.h"
@@ -48,6 +49,7 @@ class SharedBuffer;
class Stream;
class TextResourceDecoder;
class ThreadableLoader;
+class UnderlyingSource;
typedef int ExceptionCode;
@@ -79,7 +81,8 @@ public:
ResponseTypeDocument,
ResponseTypeBlob,
ResponseTypeArrayBuffer,
- ResponseTypeLegacyStream
+ ResponseTypeLegacyStream,
+ ResponseTypeStream,
};
virtual void contextDestroyed() OVERRIDE;
@@ -117,7 +120,8 @@ public:
ScriptString responseJSONSource();
Document* responseXML(ExceptionState&);
Blob* responseBlob();
- Stream* responseStream();
+ Stream* responseLegacyStream();
+ ReadableStream* responseStream();
unsigned long timeout() const { return m_timeoutMilliseconds; }
void setTimeout(unsigned long timeout, ExceptionState&);
@@ -230,7 +234,9 @@ private:
AtomicString m_mimeTypeOverride;
unsigned long m_timeoutMilliseconds;
RefPtrWillBeMember<Blob> m_responseBlob;
- RefPtrWillBeMember<Stream> m_responseStream;
+ RefPtrWillBeMember<Stream> m_responseLegacyStream;
+ PersistentWillBeMember<ReadableStreamImpl<ReadableStreamChunkTypeTraits<ArrayBuffer> > > m_responseStream;
+ PersistentWillBeMember<UnderlyingSource> m_streamSource;
RefPtr<ThreadableLoader> m_loader;
State m_state;
« no previous file with comments | « Source/core/streams/UnderlyingSource.h ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698