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

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

Issue 23444058: Use downloadToFile option when XHR downloads a Blob (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 ad3546d55fd71439db1ed5813fe0e1e5681be0c7..1a28d4547065300f9816d4eeff81fe80e199bd2f 100644
--- a/Source/core/xml/XMLHttpRequest.h
+++ b/Source/core/xml/XMLHttpRequest.h
@@ -158,6 +158,9 @@ private:
virtual void didSendData(unsigned long long bytesSent, unsigned long long totalBytesToBeSent);
virtual void didReceiveResponse(unsigned long identifier, const ResourceResponse&);
virtual void didReceiveData(const char* data, int dataLength);
+ // When "blob" is specified as the responseType attribute, didDownloadData
+ // is called instead of didReceiveData.
+ virtual void didDownloadData(int dataLength);
virtual void didFinishLoading(unsigned long identifier, double finishTime);
virtual void didFail(const ResourceError&);
virtual void didFailRedirectCheck();
@@ -173,6 +176,7 @@ private:
String getRequestHeader(const AtomicString& name) const;
void setRequestHeaderInternal(const AtomicString& name, const String& value);
+ void trackProgress(int dataLength);
void changeState(State newState);
void callReadyStateChangeListener();
void dropProtectionSoon();

Powered by Google App Engine
This is Rietveld 408576698