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

Unified Diff: ppapi/proxy/plugin_array_buffer_var.h

Issue 1548813002: Switch to standard integer types in ppapi/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes 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 | « ppapi/proxy/platform_verification_private_resource.cc ('k') | ppapi/proxy/plugin_array_buffer_var.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/plugin_array_buffer_var.h
diff --git a/ppapi/proxy/plugin_array_buffer_var.h b/ppapi/proxy/plugin_array_buffer_var.h
index ee9b930645790a6dff51bde4e7a6c59bf4309555..8f6fe1988abf8f343fcbfbd1ab34ceba0dcfdd06 100644
--- a/ppapi/proxy/plugin_array_buffer_var.h
+++ b/ppapi/proxy/plugin_array_buffer_var.h
@@ -7,7 +7,7 @@
#include <vector>
-#include "base/basictypes.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/shared_memory.h"
#include "ppapi/c/pp_instance.h"
@@ -20,15 +20,15 @@ namespace ppapi {
// owned as a vector.
class PluginArrayBufferVar : public ArrayBufferVar {
public:
- explicit PluginArrayBufferVar(uint32 size_in_bytes);
- PluginArrayBufferVar(uint32 size_in_bytes,
+ explicit PluginArrayBufferVar(uint32_t size_in_bytes);
+ PluginArrayBufferVar(uint32_t size_in_bytes,
base::SharedMemoryHandle plugin_handle);
~PluginArrayBufferVar() override;
// ArrayBufferVar implementation.
void* Map() override;
void Unmap() override;
- uint32 ByteLength() override;
+ uint32_t ByteLength() override;
bool CopyToNewShmem(
PP_Instance instance,
int* host_handle,
@@ -36,12 +36,12 @@ class PluginArrayBufferVar : public ArrayBufferVar {
private:
// Non-shared memory
- std::vector<uint8> buffer_;
+ std::vector<uint8_t> buffer_;
// Shared memory
base::SharedMemoryHandle plugin_handle_;
scoped_ptr<base::SharedMemory> shmem_;
- uint32 size_in_bytes_;
+ uint32_t size_in_bytes_;
DISALLOW_COPY_AND_ASSIGN(PluginArrayBufferVar);
};
« no previous file with comments | « ppapi/proxy/platform_verification_private_resource.cc ('k') | ppapi/proxy/plugin_array_buffer_var.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698