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

Unified Diff: content/renderer/pepper/host_var_tracker.h

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_resource_var.h ('k') | content/renderer/pepper/host_var_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/host_var_tracker.h
diff --git a/content/renderer/pepper/host_var_tracker.h b/content/renderer/pepper/host_var_tracker.h
index 9fdca65fcb2887720e3dd07abd72d8294c2fc60a..05755195af9a90ac24d54bbc93d6348189c16f5e 100644
--- a/content/renderer/pepper/host_var_tracker.h
+++ b/content/renderer/pepper/host_var_tracker.h
@@ -5,11 +5,13 @@
#ifndef CONTENT_RENDERER_PEPPER_HOST_VAR_TRACKER_H_
#define CONTENT_RENDERER_PEPPER_HOST_VAR_TRACKER_H_
+#include <stdint.h>
+
#include <map>
-#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/containers/hash_tables.h"
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "content/common/content_export.h"
#include "ppapi/c/pp_instance.h"
@@ -53,17 +55,17 @@ class HostVarTracker : public ppapi::VarTracker {
int TrackSharedMemoryHandle(PP_Instance instance,
base::SharedMemoryHandle file,
- uint32 size_in_bytes) override;
+ uint32_t size_in_bytes) override;
bool StopTrackingSharedMemoryHandle(int id,
PP_Instance instance,
base::SharedMemoryHandle* handle,
- uint32* size_in_bytes) override;
+ uint32_t* size_in_bytes) override;
private:
// VarTracker private implementation.
- ppapi::ArrayBufferVar* CreateArrayBuffer(uint32 size_in_bytes) override;
+ ppapi::ArrayBufferVar* CreateArrayBuffer(uint32_t size_in_bytes) override;
ppapi::ArrayBufferVar* CreateShmArrayBuffer(
- uint32 size_in_bytes,
+ uint32_t size_in_bytes,
base::SharedMemoryHandle handle) override;
// Clear the reference count of the given object and remove it from
@@ -97,7 +99,7 @@ class HostVarTracker : public ppapi::VarTracker {
struct SharedMemoryMapEntry {
PP_Instance instance;
base::SharedMemoryHandle handle;
- uint32 size_in_bytes;
+ uint32_t size_in_bytes;
};
typedef std::map<int, SharedMemoryMapEntry> SharedMemoryMap;
SharedMemoryMap shared_memory_map_;
« no previous file with comments | « content/renderer/pepper/host_resource_var.h ('k') | content/renderer/pepper/host_var_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698