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

Unified Diff: content/browser/renderer_host/render_widget_helper.cc

Issue 16085007: Use an explicitly-sized int type across the IPC boundary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: uint32 instead of _t, for Windows. Created 7 years, 7 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 | « content/browser/renderer_host/render_widget_helper.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_helper.cc
diff --git a/content/browser/renderer_host/render_widget_helper.cc b/content/browser/renderer_host/render_widget_helper.cc
index d244da75383ef3f8d0f037ce8d2166579cab5b77..0321702723fe8f8c421ed11f8235df0321899ae9 100644
--- a/content/browser/renderer_host/render_widget_helper.cc
+++ b/content/browser/renderer_host/render_widget_helper.cc
@@ -348,8 +348,9 @@ TransportDIB* RenderWidgetHelper::MapTransportDIB(TransportDIB::Id dib_id) {
return TransportDIB::Map(fd);
}
-void RenderWidgetHelper::AllocTransportDIB(
- size_t size, bool cache_in_browser, TransportDIB::Handle* result) {
+void RenderWidgetHelper::AllocTransportDIB(uint32 size,
+ bool cache_in_browser,
+ TransportDIB::Handle* result) {
scoped_ptr<base::SharedMemory> shared_memory(new base::SharedMemory());
if (!shared_memory->CreateAnonymous(size)) {
result->fd = -1;
« no previous file with comments | « content/browser/renderer_host/render_widget_helper.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698