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

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

Issue 618583002: Correct data size argument type in resource loading path to unsigned (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add static_cast to RELEASE_ASSERT in AssociatedURLLoader::ClientAdapter::didReceiveData Created 6 years, 2 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/workers/WorkerScriptLoader.cpp ('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 3b9eac9f4aef2d81bf49e2eb2bc23577914caeab..a7043b297b4dd88b8a1676c914982cad6fa3d53a 100644
--- a/Source/core/xml/XMLHttpRequest.h
+++ b/Source/core/xml/XMLHttpRequest.h
@@ -160,7 +160,7 @@ private:
virtual void didSendData(unsigned long long bytesSent, unsigned long long totalBytesToBeSent) OVERRIDE;
virtual void didReceiveResponse(unsigned long identifier, const ResourceResponse&) OVERRIDE;
- virtual void didReceiveData(const char* data, int dataLength) OVERRIDE;
+ virtual void didReceiveData(const char* data, unsigned dataLength) OVERRIDE;
// When responseType is set to "blob", didDownloadData() is called instead
// of didReceiveData().
virtual void didDownloadData(int dataLength) OVERRIDE;
@@ -191,7 +191,7 @@ private:
PassOwnPtr<TextResourceDecoder> createDecoder() const;
void initResponseDocument();
- void parseDocumentChunk(const char* data, int dataLength);
+ void parseDocumentChunk(const char* data, unsigned dataLength);
bool areMethodAndURLValidForSend();
@@ -201,7 +201,7 @@ private:
const AtomicString& getRequestHeader(const AtomicString& name) const;
void setRequestHeaderInternal(const AtomicString& name, const AtomicString& value);
- void trackProgress(int dataLength);
+ void trackProgress(long long dataLength);
// Changes m_state and dispatches a readyStateChange event if new m_state
// value is different from last one.
void changeState(State newState);
« no previous file with comments | « Source/core/workers/WorkerScriptLoader.cpp ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698