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

Unified Diff: content/renderer/pepper/host_array_buffer_var.cc

Issue 1547073003: Switch to standard integer types in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/renderer/pepper/host_array_buffer_var.h ('k') | content/renderer/pepper/host_dispatcher_wrapper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/host_array_buffer_var.cc
diff --git a/content/renderer/pepper/host_array_buffer_var.cc b/content/renderer/pepper/host_array_buffer_var.cc
index 67f5f81f0edcbcadeeb89a91098b508937a42a78..eaff2e7eee0d894ec889e3668d9ea488752fe085 100644
--- a/content/renderer/pepper/host_array_buffer_var.cc
+++ b/content/renderer/pepper/host_array_buffer_var.cc
@@ -24,14 +24,14 @@ using blink::WebArrayBuffer;
namespace content {
-HostArrayBufferVar::HostArrayBufferVar(uint32 size_in_bytes)
+HostArrayBufferVar::HostArrayBufferVar(uint32_t size_in_bytes)
: buffer_(WebArrayBuffer::create(size_in_bytes, 1 /* element_size */)),
valid_(true) {}
HostArrayBufferVar::HostArrayBufferVar(const WebArrayBuffer& buffer)
: buffer_(buffer), valid_(true) {}
-HostArrayBufferVar::HostArrayBufferVar(uint32 size_in_bytes,
+HostArrayBufferVar::HostArrayBufferVar(uint32_t size_in_bytes,
base::SharedMemoryHandle handle)
: buffer_(WebArrayBuffer::create(size_in_bytes, 1 /* element_size */)) {
base::SharedMemory s(handle, true);
@@ -54,7 +54,9 @@ void HostArrayBufferVar::Unmap() {
// We do not used shared memory on the host side. Nothing to do.
}
-uint32 HostArrayBufferVar::ByteLength() { return buffer_.byteLength(); }
+uint32_t HostArrayBufferVar::ByteLength() {
+ return buffer_.byteLength();
+}
bool HostArrayBufferVar::CopyToNewShmem(
PP_Instance instance,
« no previous file with comments | « content/renderer/pepper/host_array_buffer_var.h ('k') | content/renderer/pepper/host_dispatcher_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698