| 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:
|
|
|