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

Unified Diff: net/base/upload_bytes_element_reader.h

Issue 1158923005: Use the exact-width integer types defined in <stdint.h> rather than (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweak comments. Exclude mime_sniffer*. Rebase. Created 5 years, 7 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: net/base/upload_bytes_element_reader.h
diff --git a/net/base/upload_bytes_element_reader.h b/net/base/upload_bytes_element_reader.h
index 3246d129ed44830f043c61d3304e11e6ef6509a3..4864c9ab6221279f92ead6c84899b2c871f687f7 100644
--- a/net/base/upload_bytes_element_reader.h
+++ b/net/base/upload_bytes_element_reader.h
@@ -19,17 +19,17 @@ namespace net {
// ownership of the data.
class NET_EXPORT UploadBytesElementReader : public UploadElementReader {
public:
- UploadBytesElementReader(const char* bytes, uint64 length);
+ UploadBytesElementReader(const char* bytes, uint64_t length);
~UploadBytesElementReader() override;
const char* bytes() const { return bytes_; }
- uint64 length() const { return length_; }
+ uint64_t length() const { return length_; }
// UploadElementReader overrides:
const UploadBytesElementReader* AsBytesReader() const override;
int Init(const CompletionCallback& callback) override;
- uint64 GetContentLength() const override;
- uint64 BytesRemaining() const override;
+ uint64_t GetContentLength() const override;
+ uint64_t BytesRemaining() const override;
bool IsInMemory() const override;
int Read(IOBuffer* buf,
int buf_length,
@@ -37,8 +37,8 @@ class NET_EXPORT UploadBytesElementReader : public UploadElementReader {
private:
const char* const bytes_;
- const uint64 length_;
- uint64 offset_;
+ const uint64_t length_;
+ uint64_t offset_;
DISALLOW_COPY_AND_ASSIGN(UploadBytesElementReader);
};

Powered by Google App Engine
This is Rietveld 408576698