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

Unified Diff: chrome/browser/net/chrome_network_delegate.cc

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 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: chrome/browser/net/chrome_network_delegate.cc
diff --git a/chrome/browser/net/chrome_network_delegate.cc b/chrome/browser/net/chrome_network_delegate.cc
index eeee086eae3f32381bf8fb787a0deb4a57b5d721..0775d81bca00232e5156420b3309875a9910361f 100644
--- a/chrome/browser/net/chrome_network_delegate.cc
+++ b/chrome/browser/net/chrome_network_delegate.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/net/chrome_network_delegate.h"
+#include <stddef.h>
#include <stdlib.h>
#include <vector>
@@ -14,6 +15,7 @@
#include "base/debug/dump_without_crashing.h"
#include "base/debug/stack_trace.h"
#include "base/logging.h"
+#include "base/macros.h"
#include "base/metrics/field_trial.h"
#include "base/metrics/histogram.h"
#include "base/metrics/sparse_histogram.h"
@@ -25,6 +27,7 @@
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/time/time.h"
+#include "build/build_config.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/content_settings/cookie_settings_factory.h"
#include "chrome/browser/content_settings/tab_specific_content_settings.h"
@@ -113,7 +116,7 @@ void RecordPrecacheStatsOnUIThread(const GURL& url,
const GURL& referrer,
base::TimeDelta latency,
const base::Time& fetch_time,
- int64 size,
+ int64_t size,
bool was_cached,
void* profile_id) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
@@ -273,7 +276,7 @@ void RecordCacheStateStats(const net::URLRequest* request) {
CACHE_STATE_MAX);
}
- int64 size = request->received_response_content_length();
+ int64_t size = request->received_response_content_length();
if (size >= 0 && state == CACHE_STATE_NO_LONGER_VALID) {
UMA_HISTOGRAM_COUNTS("Net.CacheState.AllBytes", size);
if (CanRequestBeDeltaEncoded(request)) {
@@ -532,7 +535,8 @@ void ChromeNetworkDelegate::OnCompleted(net::URLRequest* request,
// For better accuracy, we use the actual bytes read instead of the length
// specified with the Content-Length header, which may be inaccurate,
// or missing, as is the case with chunked encoding.
- int64 received_content_length = request->received_response_content_length();
+ int64_t received_content_length =
+ request->received_response_content_length();
base::TimeDelta latency = base::TimeTicks::Now() - request->creation_time();
// Record precache metrics when a fetch is completed successfully, if
« no previous file with comments | « chrome/browser/net/chrome_network_delegate.h ('k') | chrome/browser/net/chrome_network_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698