diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-16 23:58:27 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-16 23:58:27 +0000 |
commit | b5ab398db97d13c76d332c6567c23a575858f8c4 (patch) | |
tree | 54a5771b49afbb92470d92b82bcac1a78d10f2f8 /chrome/common | |
parent | 77bd2cefb7f0f8f437b47b3d6a3dd458b8d4fe2e (diff) | |
download | chromium_src-b5ab398db97d13c76d332c6567c23a575858f8c4.zip chromium_src-b5ab398db97d13c76d332c6567c23a575858f8c4.tar.gz chromium_src-b5ab398db97d13c76d332c6567c23a575858f8c4.tar.bz2 |
Make SharedMemory use uint32 instead of size_t. This removes the remaining size_t's from the IPC code.
Review URL: http://codereview.chromium.org/581001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39164 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/command_buffer_messages_internal.h | 2 | ||||
-rw-r--r-- | chrome/common/plugin_messages_internal.h | 2 | ||||
-rw-r--r-- | chrome/common/render_messages.h | 2 | ||||
-rw-r--r-- | chrome/common/render_messages_internal.h | 4 | ||||
-rw-r--r-- | chrome/common/resource_dispatcher_unittest.cc | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/chrome/common/command_buffer_messages_internal.h b/chrome/common/command_buffer_messages_internal.h index 0969f1c..6d08dd3 100644 --- a/chrome/common/command_buffer_messages_internal.h +++ b/chrome/common/command_buffer_messages_internal.h @@ -53,7 +53,7 @@ IPC_BEGIN_MESSAGES(CommandBuffer) IPC_SYNC_MESSAGE_ROUTED1_2(CommandBufferMsg_GetTransferBuffer, int32 /* id */, base::SharedMemoryHandle /* transfer_buffer */, - size_t /* size */) + uint32 /* size */) #if defined(OS_MACOSX) // On Mac OS X the GPU plugin must be offscreen, because there is no diff --git a/chrome/common/plugin_messages_internal.h b/chrome/common/plugin_messages_internal.h index b5908a8..66df30b 100644 --- a/chrome/common/plugin_messages_internal.h +++ b/chrome/common/plugin_messages_internal.h @@ -204,7 +204,7 @@ IPC_BEGIN_MESSAGES(Plugin) IPC_SYNC_MESSAGE_ROUTED0_2(PluginMsg_Print, base::SharedMemoryHandle /* shared_memory*/, - size_t /* size */) + uint32 /* size */) IPC_SYNC_MESSAGE_ROUTED0_1(PluginMsg_GetPluginScriptableObject, int /* route_id */) diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h index 008e53e..07b91a9 100644 --- a/chrome/common/render_messages.h +++ b/chrome/common/render_messages.h @@ -413,7 +413,7 @@ struct ViewHostMsg_DidPrintPage_Params { base::SharedMemoryHandle metafile_data_handle; // Size of the metafile data. - unsigned data_size; + uint32 data_size; // Cookie for the document to ensure correctness. int document_cookie; diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index 90500d1..8aef0f0 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -1636,12 +1636,12 @@ IPC_BEGIN_MESSAGES(ViewHost) // Asks the browser to create a block of shared memory for the renderer to pass // NativeMetafile data to the browser. IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_AllocatePDFTransport, - size_t /* buffer size */, + uint32 /* buffer size */, base::SharedMemoryHandle /* browser handle */) // Asks the browser to create a block of shared memory for the renderer to // fill in and pass back to the browser. IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_AllocateSharedMemoryBuffer, - size_t /* buffer size */, + uint32 /* buffer size */, base::SharedMemoryHandle /* browser handle */) #endif diff --git a/chrome/common/resource_dispatcher_unittest.cc b/chrome/common/resource_dispatcher_unittest.cc index df658c0..d65abbe 100644 --- a/chrome/common/resource_dispatcher_unittest.cc +++ b/chrome/common/resource_dispatcher_unittest.cc @@ -24,7 +24,7 @@ static const char test_page_mime_type[] = "text/html"; static const char test_page_charset[] = ""; static const char test_page_contents[] = "<html><head><title>Google</title></head><body><h1>Google</h1></body></html>"; -static const int test_page_contents_len = arraysize(test_page_contents) - 1; +static const uint32 test_page_contents_len = arraysize(test_page_contents) - 1; // Listens for request response data and stores it so that it can be compared // to the reference data. |