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

Unified Diff: chrome/browser/renderer_host/chrome_render_message_filter.cc

Issue 1685883004: Use uint64_t instead of size_t inside the web cache manager code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 10 months 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 | « chrome/browser/renderer_host/chrome_render_message_filter.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/chrome_render_message_filter.cc
diff --git a/chrome/browser/renderer_host/chrome_render_message_filter.cc b/chrome/browser/renderer_host/chrome_render_message_filter.cc
index 056d6a8a6654e1fb3d4865dcb91fa1cb1c6cdc4d..1a48364b54c7839d39063d124d3d35240d9f2a58 100644
--- a/chrome/browser/renderer_host/chrome_render_message_filter.cc
+++ b/chrome/browser/renderer_host/chrome_render_message_filter.cc
@@ -39,7 +39,6 @@
#endif
using content::BrowserThread;
-using blink::WebCache;
namespace {
@@ -130,9 +129,14 @@ void ChromeRenderMessageFilter::OnPreconnect(const GURL& url,
}
void ChromeRenderMessageFilter::OnUpdatedCacheStats(
- const WebCache::UsageStats& stats) {
+ uint64_t min_dead_capacity,
+ uint64_t max_dead_capacity,
+ uint64_t capacity,
+ uint64_t live_size,
+ uint64_t dead_size) {
web_cache::WebCacheManager::GetInstance()->ObserveStats(
- render_process_id_, stats);
+ render_process_id_, min_dead_capacity, max_dead_capacity, capacity,
+ live_size, dead_size);
}
void ChromeRenderMessageFilter::OnAllowDatabase(
« no previous file with comments | « chrome/browser/renderer_host/chrome_render_message_filter.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698