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

Unified Diff: net/url_request/url_request.cc

Issue 1502503004: Remove kuint64max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kint8
Patch Set: rebase 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
« no previous file with comments | « net/url_request/url_request.h ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request.cc
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index 3db47d2b27d010b42731a5d2ece4e04efe9a2a65..7b774a7b5fbe95a79369fc916c48b2ee5a89f844 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -56,14 +56,14 @@ const int kMaxRedirects = 20;
// TODO(battre): Delete this, see http://crbug.com/89321:
// This counter keeps track of the identifiers used for URL requests so far.
// 0 is reserved to represent an invalid ID.
-uint64 g_next_url_request_identifier = 1;
+uint64_t g_next_url_request_identifier = 1;
// This lock protects g_next_url_request_identifier.
base::LazyInstance<base::Lock>::Leaky
g_next_url_request_identifier_lock = LAZY_INSTANCE_INITIALIZER;
// Returns an prior unused identifier for URL requests.
-uint64 GenerateURLRequestIdentifier() {
+uint64_t GenerateURLRequestIdentifier() {
base::AutoLock lock(g_next_url_request_identifier_lock.Get());
return g_next_url_request_identifier++;
}
@@ -694,7 +694,7 @@ void URLRequest::DoCancel(int error, const SSLInfo& ssl_info) {
// ~500,000 ERR_ABORTED < 100ms in Canary channel a day. Sample .01% to get
// ~50 reports a day.
// TODO(csharrison) Remove this code when crbug.com/557430 is resolved.
- int64 request_time =
+ int64_t request_time =
(base::TimeTicks::Now() - creation_time_).InMilliseconds();
if (!has_notified_completion_ && error == ERR_ABORTED &&
request_time <= 100 && load_flags_ & LOAD_MAIN_FRAME &&
@@ -1005,8 +1005,8 @@ const URLRequestContext* URLRequest::context() const {
return context_;
}
-int64 URLRequest::GetExpectedContentSize() const {
- int64 expected_content_size = -1;
+int64_t URLRequest::GetExpectedContentSize() const {
+ int64_t expected_content_size = -1;
if (job_.get())
expected_content_size = job_->expected_content_size();
« no previous file with comments | « net/url_request/url_request.h ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698