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

Unified Diff: third_party/WebKit/Source/core/fetch/RawResource.h

Issue 1571233003: Fix errors caused by unsafe conversions to/from size_t (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: improved ALLOW_NUMERIC_ARG_TYPES_PROMOTABLE_TO Created 4 years, 11 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: third_party/WebKit/Source/core/fetch/RawResource.h
diff --git a/third_party/WebKit/Source/core/fetch/RawResource.h b/third_party/WebKit/Source/core/fetch/RawResource.h
index 554381fa11fc41ac24de87ab0bccdb4545b333ba..c3f5e13eca540b56c0fbaf866a5b2d4332bce584 100644
--- a/third_party/WebKit/Source/core/fetch/RawResource.h
+++ b/third_party/WebKit/Source/core/fetch/RawResource.h
@@ -70,7 +70,7 @@ private:
};
void didAddClient(ResourceClient*) override;
- void appendData(const char*, unsigned) override;
+ void appendData(const char*, size_t) override;
bool shouldIgnoreHTTPStatusCodeErrors() const override { return true; }
@@ -105,7 +105,7 @@ public:
virtual void dataSent(Resource*, unsigned long long /* bytesSent */, unsigned long long /* totalBytesToBeSent */) { }
virtual void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<WebDataConsumerHandle>) { }
virtual void setSerializedCachedMetadata(Resource*, const char*, size_t) { }
- virtual void dataReceived(Resource*, const char* /* data */, unsigned /* length */) { }
+ virtual void dataReceived(Resource*, const char* /* data */, size_t /* length */) { }
virtual void redirectReceived(Resource*, ResourceRequest&, const ResourceResponse&) { }
virtual void updateRequest(Resource*, const ResourceRequest&) { }
virtual void dataDownloaded(Resource*, int) { }
« no previous file with comments | « third_party/WebKit/Source/core/fetch/MemoryCacheTest.cpp ('k') | third_party/WebKit/Source/core/fetch/RawResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698