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

Unified Diff: content/browser/cache_storage/cache_storage.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
Index: content/browser/cache_storage/cache_storage.cc
diff --git a/content/browser/cache_storage/cache_storage.cc b/content/browser/cache_storage/cache_storage.cc
index ffdeed14790b480406a32b477e7f8a4b4bf11761..6697f91da228e4fd9aebe8de0cea91296f9b1c5c 100644
--- a/content/browser/cache_storage/cache_storage.cc
+++ b/content/browser/cache_storage/cache_storage.cc
@@ -4,6 +4,8 @@
#include "content/browser/cache_storage/cache_storage.h"
+#include <stddef.h>
+
#include <set>
#include <string>
@@ -571,13 +573,13 @@ void CacheStorage::CloseAllCaches(const base::Closure& callback) {
pending_callback));
}
-int64 CacheStorage::MemoryBackedSize() const {
+int64_t CacheStorage::MemoryBackedSize() const {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (!initialized_ || !memory_only_)
return 0;
- int64 sum = 0;
+ int64_t sum = 0;
for (auto& key_value : cache_map_) {
if (key_value.second)
sum += key_value.second->MemoryBackedSize();
« no previous file with comments | « content/browser/cache_storage/cache_storage.h ('k') | content/browser/cache_storage/cache_storage_blob_to_disk_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698