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

Unified Diff: content/child/resource_dispatcher.cc

Issue 1544273002: Switch to standard integer types in content/. (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
« no previous file with comments | « content/child/resource_dispatcher.h ('k') | content/child/resource_dispatcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_dispatcher.cc
diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc
index 2b5999fb054f0a8b0bda3c6abfd69f0c119cc255..d7734432cadc1b1b51783afa10dbeae1fe8247b0 100644
--- a/content/child/resource_dispatcher.cc
+++ b/content/child/resource_dispatcher.cc
@@ -6,7 +6,6 @@
#include "content/child/resource_dispatcher.h"
-#include "base/basictypes.h"
#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/debug/alias.h"
@@ -18,6 +17,7 @@
#include "base/metrics/histogram.h"
#include "base/rand_util.h"
#include "base/strings/string_util.h"
+#include "build/build_config.h"
#include "content/child/request_extra_data.h"
#include "content/child/request_info.h"
#include "content/child/resource_scheduling_filter.h"
@@ -135,8 +135,9 @@ ResourceDispatcher::GetPendingRequestInfo(int request_id) {
return &(it->second);
}
-void ResourceDispatcher::OnUploadProgress(int request_id, int64 position,
- int64 size) {
+void ResourceDispatcher::OnUploadProgress(int request_id,
+ int64_t position,
+ int64_t size) {
PendingRequestInfo* request_info = GetPendingRequestInfo(request_id);
if (!request_info)
return;
@@ -723,8 +724,8 @@ base::TimeTicks ResourceDispatcher::ToRendererCompletionTime(
// TimeTicks::Now() returned to WebKit. Is it worth trying to cache that?
// Until then, |response_start| is used as it is the most recent value
// returned for this request.
- int64 result = std::max(browser_completion_time.ToInternalValue(),
- request_info.response_start.ToInternalValue());
+ int64_t result = std::max(browser_completion_time.ToInternalValue(),
+ request_info.response_start.ToInternalValue());
result = std::min(result, request_info.completion_time.ToInternalValue());
return base::TimeTicks::FromInternalValue(result);
}
« no previous file with comments | « content/child/resource_dispatcher.h ('k') | content/child/resource_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698