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

Unified Diff: chrome/common/render_messages.h

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.cc ('k') | chrome/common/render_messages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages.h
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index 61526f07f2aa632b9b1e716e0589a80f4e46946a..72ceba5c2c4f38e0f4c1106cc0a556e7c821ed58 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -24,7 +24,6 @@
#include "ipc/ipc_message_macros.h"
#include "ipc/ipc_platform_file.h"
#include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerPromptReply.h"
-#include "third_party/WebKit/public/web/WebCache.h"
#include "third_party/WebKit/public/web/WebConsoleMessage.h"
// Singly-included section for enums and custom IPC traits.
@@ -56,18 +55,6 @@ struct ParamTraits<ContentSettingsPattern> {
static void Log(const param_type& p, std::string* l);
};
-// Manual traits since this struct uses size_t and it's in Blink, so avoid
-// changing Blink due to IPC differences.
-template <>
-struct ParamTraits<blink::WebCache::UsageStats> {
- typedef blink::WebCache::UsageStats param_type;
- static void Write(base::Pickle* m, const param_type& u);
- static bool Read(const base::Pickle* m,
- base::PickleIterator* iter,
- param_type* u);
- static void Log(const param_type& p, std::string* l);
-};
-
} // namespace IPC
#endif // CHROME_COMMON_RENDER_MESSAGES_H_
@@ -365,8 +352,12 @@ IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_LoadOfflineCopy, GURL /* url */)
// Misc messages
// These are messages sent from the renderer to the browser process.
-IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats,
- blink::WebCache::UsageStats /* stats */)
+IPC_MESSAGE_CONTROL5(ChromeViewHostMsg_UpdatedCacheStats,
+ uint64_t /* min_dead_capacity */,
+ uint64_t /* max_dead_capacity */,
+ uint64_t /* capacity */,
+ uint64_t /* live_size */,
+ uint64_t /* dead_size */)
// Sent by the renderer process to check whether access to FileSystem is
// granted by content settings.
« no previous file with comments | « chrome/browser/renderer_host/chrome_render_message_filter.cc ('k') | chrome/common/render_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698