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

Unified Diff: ppapi/shared_impl/ppapi_permissions.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/shared_impl/ppapi_globals.h ('k') | ppapi/shared_impl/ppapi_permissions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/ppapi_permissions.h
diff --git a/ppapi/shared_impl/ppapi_permissions.h b/ppapi/shared_impl/ppapi_permissions.h
index 8a12206b9d412ed179fa2a21929380555630369d..346959f4196af1b8dcf35c735d1d3f7abee64cd5 100644
--- a/ppapi/shared_impl/ppapi_permissions.h
+++ b/ppapi/shared_impl/ppapi_permissions.h
@@ -5,7 +5,8 @@
#ifndef PPAPI_SHARED_IMPL_PPAPI_PERMISSIONS_H_
#define PPAPI_SHARED_IMPL_PPAPI_PERMISSIONS_H_
-#include "base/basictypes.h"
+#include <stdint.h>
+
#include "ppapi/shared_impl/ppapi_shared_export.h"
namespace ppapi {
@@ -53,7 +54,7 @@ class PPAPI_SHARED_EXPORT PpapiPermissions {
PpapiPermissions();
// Initializes with the given permissions bits set.
- explicit PpapiPermissions(uint32 perms);
+ explicit PpapiPermissions(uint32_t perms);
~PpapiPermissions();
@@ -64,15 +65,15 @@ class PPAPI_SHARED_EXPORT PpapiPermissions {
// Returns the effective permissions given the "base" permissions granted
// to the given plugin and the current command line flags, which may enable
// more features.
- static PpapiPermissions GetForCommandLine(uint32 base_perms);
+ static PpapiPermissions GetForCommandLine(uint32_t base_perms);
bool HasPermission(Permission perm) const;
// Returns the internal permission bits. Use for serialization only.
- uint32 GetBits() const { return permissions_; }
+ uint32_t GetBits() const { return permissions_; }
private:
- uint32 permissions_;
+ uint32_t permissions_;
// Note: Copy & assign supported.
};
« no previous file with comments | « ppapi/shared_impl/ppapi_globals.h ('k') | ppapi/shared_impl/ppapi_permissions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698