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

Unified Diff: Source/platform/SharedBuffer.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/xml/XMLHttpRequest.cpp ('k') | Source/platform/SharedBuffer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/SharedBuffer.h
diff --git a/Source/platform/SharedBuffer.h b/Source/platform/SharedBuffer.h
index 442ca1e1746bb58c05bae56600cae8b776685005..6a8100af7f1a1c3e74523ef4d54d2d529cdf48d7 100644
--- a/Source/platform/SharedBuffer.h
+++ b/Source/platform/SharedBuffer.h
@@ -45,7 +45,7 @@ public:
static PassRefPtr<SharedBuffer> create(const char* c, int i) { return adoptRef(new SharedBuffer(c, i)); }
static PassRefPtr<SharedBuffer> create(const unsigned char* c, int i) { return adoptRef(new SharedBuffer(c, i)); }
- static PassRefPtr<SharedBuffer> createPurgeable(const char* c, int i) { return adoptRef(new SharedBuffer(c, i, PurgeableVector::Purgeable)); }
+ static PassRefPtr<SharedBuffer> createPurgeable(const char* c, unsigned size) { return adoptRef(new SharedBuffer(c, size, PurgeableVector::Purgeable)); }
static PassRefPtr<SharedBuffer> adoptVector(Vector<char>&);
@@ -105,8 +105,8 @@ private:
SharedBuffer();
explicit SharedBuffer(size_t);
SharedBuffer(const char*, int);
- SharedBuffer(const char*, int, PurgeableVector::PurgeableOption);
SharedBuffer(const unsigned char*, int);
+ SharedBuffer(const char*, unsigned, PurgeableVector::PurgeableOption);
// See SharedBuffer::data().
void mergeSegmentsIntoBuffer() const;
« no previous file with comments | « Source/core/xml/XMLHttpRequest.cpp ('k') | Source/platform/SharedBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698