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

Unified Diff: components/cronet/android/url_request_adapter.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/url_request_adapter.h
diff --git a/components/cronet/android/url_request_adapter.h b/components/cronet/android/url_request_adapter.h
index 4ba153e1adf0bd1dccef2e88753705da2b6519d4..d632b911229da0ff565deb524a96ba4202bd3c4c 100644
--- a/components/cronet/android/url_request_adapter.h
+++ b/components/cronet/android/url_request_adapter.h
@@ -6,6 +6,7 @@
#define COMPONENTS_CRONET_ANDROID_URL_REQUEST_ADAPTER_H_
#include <jni.h>
+#include <stdint.h>
#include <string>
@@ -61,7 +62,7 @@ class URLRequestAdapter : public net::URLRequest::Delegate {
void SetUploadContent(const char* bytes, int bytes_len);
// Sets the request to streaming upload.
- void SetUploadChannel(JNIEnv* env, int64 content_length);
+ void SetUploadChannel(JNIEnv* env, int64_t content_length);
// Disables redirect. Note that redirect is enabled by default.
void DisableRedirects();
@@ -101,7 +102,7 @@ class URLRequestAdapter : public net::URLRequest::Delegate {
}
// Returns the value of the content-length response header.
- int64 content_length() const { return expected_size_; }
+ int64_t content_length() const { return expected_size_; }
// Returns the value of the content-type response header.
std::string content_type() const { return content_type_; }
@@ -162,7 +163,7 @@ class URLRequestAdapter : public net::URLRequest::Delegate {
std::string http_status_text_;
std::string content_type_;
bool canceled_;
- int64 expected_size_;
+ int64_t expected_size_;
bool chunked_upload_;
// Indicates whether redirect has been disabled.
bool disable_redirect_;
« no previous file with comments | « components/cronet/android/test/test_upload_data_stream_handler.cc ('k') | components/cronet/android/url_request_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698