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

Unified Diff: components/cronet/android/wrapped_channel_upload_element_reader.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: components/cronet/android/wrapped_channel_upload_element_reader.cc
diff --git a/components/cronet/android/wrapped_channel_upload_element_reader.cc b/components/cronet/android/wrapped_channel_upload_element_reader.cc
index 750d382601bf25a3e09d5db2920febbb9245e69a..88dede7566ce1b22f71de6e0d9f18257ce6a2581 100644
--- a/components/cronet/android/wrapped_channel_upload_element_reader.cc
+++ b/components/cronet/android/wrapped_channel_upload_element_reader.cc
@@ -13,9 +13,8 @@ namespace cronet {
WrappedChannelElementReader::WrappedChannelElementReader(
scoped_refptr<URLRequestAdapter::URLRequestAdapterDelegate> delegate,
- uint64 length)
- : length_(length), offset_(0), delegate_(delegate) {
-}
+ uint64_t length)
+ : length_(length), offset_(0), delegate_(delegate) {}
WrappedChannelElementReader::~WrappedChannelElementReader() {
}
@@ -26,11 +25,11 @@ int WrappedChannelElementReader::Init(const net::CompletionCallback& callback) {
return net::OK;
}
-uint64 WrappedChannelElementReader::GetContentLength() const {
+uint64_t WrappedChannelElementReader::GetContentLength() const {
return length_;
}
-uint64 WrappedChannelElementReader::BytesRemaining() const {
+uint64_t WrappedChannelElementReader::BytesRemaining() const {
return length_ - offset_;
}
« no previous file with comments | « components/cronet/android/wrapped_channel_upload_element_reader.h ('k') | components/cronet/histogram_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698