diff options
author | cevans@chromium.org <cevans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-11 03:23:59 +0000 |
---|---|---|
committer | cevans@chromium.org <cevans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-11 03:23:59 +0000 |
commit | 3f8928374abadc5cc437e1182a842542ad86fc88 (patch) | |
tree | 95f7c1eb5020bbc6130b2efd9c8ae0097deacade /content/public | |
parent | a3f3803f62ab68c48c9d4c3127836b5829b9d252 (diff) | |
download | chromium_src-3f8928374abadc5cc437e1182a842542ad86fc88.zip chromium_src-3f8928374abadc5cc437e1182a842542ad86fc88.tar.gz chromium_src-3f8928374abadc5cc437e1182a842542ad86fc88.tar.bz2 |
More conversion from uint to size_t for shared memory allocation sizes.
BUG=164678
Review URL: https://codereview.chromium.org/11783095
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176248 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public')
-rw-r--r-- | content/public/renderer/render_thread.h | 2 | ||||
-rw-r--r-- | content/public/test/mock_render_thread.cc | 2 | ||||
-rw-r--r-- | content/public/test/mock_render_thread.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/content/public/renderer/render_thread.h b/content/public/renderer/render_thread.h index 328a6bd..a041657 100644 --- a/content/public/renderer/render_thread.h +++ b/content/public/renderer/render_thread.h @@ -85,7 +85,7 @@ class CONTENT_EXPORT RenderThread : public IPC::Sender { // Asks the host to create a block of shared memory for the renderer. // The shared memory allocated by the host is returned back. virtual scoped_ptr<base::SharedMemory> HostAllocateSharedMemoryBuffer( - uint32 buffer_size) = 0; + size_t buffer_size) = 0; // Registers the given V8 extension with WebKit. virtual void RegisterExtension(v8::Extension* extension) = 0; diff --git a/content/public/test/mock_render_thread.cc b/content/public/test/mock_render_thread.cc index 6582970..a5d8e13 100644 --- a/content/public/test/mock_render_thread.cc +++ b/content/public/test/mock_render_thread.cc @@ -143,7 +143,7 @@ void MockRenderThread::RecordUserMetrics(const std::string& action) { scoped_ptr<base::SharedMemory> MockRenderThread::HostAllocateSharedMemoryBuffer( - uint32 buffer_size) { + size_t buffer_size) { scoped_ptr<base::SharedMemory> shared_buf(new base::SharedMemory); if (!shared_buf->CreateAndMapAnonymous(buffer_size)) { NOTREACHED() << "Cannot map shared memory buffer"; diff --git a/content/public/test/mock_render_thread.h b/content/public/test/mock_render_thread.h index b4b8700..c8f1419 100644 --- a/content/public/test/mock_render_thread.h +++ b/content/public/test/mock_render_thread.h @@ -60,7 +60,7 @@ class MockRenderThread : public RenderThread { virtual void EnsureWebKitInitialized() OVERRIDE; virtual void RecordUserMetrics(const std::string& action) OVERRIDE; virtual scoped_ptr<base::SharedMemory> HostAllocateSharedMemoryBuffer( - uint32 buffer_size) OVERRIDE; + size_t buffer_size) OVERRIDE; virtual void RegisterExtension(v8::Extension* extension) OVERRIDE; virtual void ScheduleIdleHandler(int64 initial_delay_ms) OVERRIDE; virtual void IdleHandler() OVERRIDE; |