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

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

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.h
diff --git a/components/cronet/android/wrapped_channel_upload_element_reader.h b/components/cronet/android/wrapped_channel_upload_element_reader.h
index 4d62d491b758f51233a8ac6ab2255684d3981931..a7e523c97a8c9e86e36ad2f96a52064d8dcbd60a 100644
--- a/components/cronet/android/wrapped_channel_upload_element_reader.h
+++ b/components/cronet/android/wrapped_channel_upload_element_reader.h
@@ -5,8 +5,10 @@
#ifndef COMPONENTS_CRONET_ANDROID_WRAPPED_CHANNEL_UPLOAD_ELEMENT_READER_H_
#define COMPONENTS_CRONET_ANDROID_WRAPPED_CHANNEL_UPLOAD_ELEMENT_READER_H_
-#include "base/basictypes.h"
+#include <stdint.h>
+
#include "base/compiler_specific.h"
+#include "base/macros.h"
#include "components/cronet/android/url_request_adapter.h"
#include "net/base/completion_callback.h"
#include "net/base/upload_element_reader.h"
@@ -25,21 +27,21 @@ class WrappedChannelElementReader : public net::UploadElementReader {
public:
WrappedChannelElementReader(
scoped_refptr<URLRequestAdapter::URLRequestAdapterDelegate> delegate,
- uint64 length);
+ uint64_t length);
~WrappedChannelElementReader() override;
// UploadElementReader overrides:
int Init(const net::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(net::IOBuffer* buf,
int buf_length,
const net::CompletionCallback& callback) override;
private:
- const uint64 length_;
- uint64 offset_;
+ const uint64_t length_;
+ uint64_t offset_;
scoped_refptr<URLRequestAdapter::URLRequestAdapterDelegate> delegate_;
DISALLOW_COPY_AND_ASSIGN(WrappedChannelElementReader);

Powered by Google App Engine
This is Rietveld 408576698