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

Unified Diff: ppapi/shared_impl/ppapi_permissions.h

Issue 10912062: Implement the gamepad API in the IPC proxy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months 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/resource_message_params.cc ('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 94db0e632a927cb04a5ec32a14d5104e981f3353..4b1c6a6a6448b4a30f64c21bf193eb6b08da7b3e 100644
--- a/ppapi/shared_impl/ppapi_permissions.h
+++ b/ppapi/shared_impl/ppapi_permissions.h
@@ -20,6 +20,8 @@ enum Permission {
// Allows ability to bypass user-gesture checks for showing things like
// file select dialogs.
PERMISSION_BYPASS_USER_GESTURE = 1 << 3
+
+ // NOTE: If you add stuff be sure to update AllPermissions().
};
class PPAPI_SHARED_EXPORT PpapiPermissions {
@@ -32,6 +34,10 @@ class PPAPI_SHARED_EXPORT PpapiPermissions {
~PpapiPermissions();
+ // Returns a permissions class with all features enabled. This is for testing
+ // and manually registered plugins.
+ static PpapiPermissions AllPermissions();
+
bool HasPermission(Permission perm) const;
private:
« no previous file with comments | « ppapi/proxy/resource_message_params.cc ('k') | ppapi/shared_impl/ppapi_permissions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698