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

Unified Diff: Source/core/xml/XMLHttpRequest.h

Issue 18883002: Add Streams API support to XMLHttpRequest (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Changed order of cancellation Created 7 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: Source/core/xml/XMLHttpRequest.h
diff --git a/Source/core/xml/XMLHttpRequest.h b/Source/core/xml/XMLHttpRequest.h
index 3ffc6c29a87369aa800145ae0bd6be67a9106d5b..ad3546d55fd71439db1ed5813fe0e1e5681be0c7 100644
--- a/Source/core/xml/XMLHttpRequest.h
+++ b/Source/core/xml/XMLHttpRequest.h
@@ -46,6 +46,7 @@ class ExceptionState;
class ResourceRequest;
class SecurityOrigin;
class SharedBuffer;
+class Stream;
class TextResourceDecoder;
class ThreadableLoader;
@@ -72,7 +73,8 @@ public:
ResponseTypeJSON,
ResponseTypeDocument,
ResponseTypeBlob,
- ResponseTypeArrayBuffer
+ ResponseTypeArrayBuffer,
+ ResponseTypeStream
};
enum DropProtection {
@@ -116,6 +118,7 @@ public:
ScriptString responseJSONSource();
Document* responseXML(ExceptionState&);
Blob* responseBlob();
+ Stream* responseStream();
unsigned long timeout() const { return m_timeoutMilliseconds; }
void setTimeout(unsigned long timeout, ExceptionState&);
@@ -196,6 +199,7 @@ private:
bool m_includeCredentials;
unsigned long m_timeoutMilliseconds;
RefPtr<Blob> m_responseBlob;
+ RefPtr<Stream> m_responseStream;
RefPtr<ThreadableLoader> m_loader;
State m_state;

Powered by Google App Engine
This is Rietveld 408576698