| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PPAPI_SHARED_IMPL_PPAPI_PERMISSIONS_H_ | 5 #ifndef PPAPI_SHARED_IMPL_PPAPI_PERMISSIONS_H_ |
| 6 #define PPAPI_SHARED_IMPL_PPAPI_PERMISSIONS_H_ | 6 #define PPAPI_SHARED_IMPL_PPAPI_PERMISSIONS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "ppapi/shared_impl/ppapi_shared_export.h" | 9 #include "ppapi/shared_impl/ppapi_shared_export.h" |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 // "Dev channel" interfaces. This is different than PERMISSION_DEV above; | 34 // "Dev channel" interfaces. This is different than PERMISSION_DEV above; |
| 35 // these interfaces may only be used on Dev or Canary channel releases of | 35 // these interfaces may only be used on Dev or Canary channel releases of |
| 36 // Chrome. | 36 // Chrome. |
| 37 PERMISSION_DEV_CHANNEL = 1 << 5, | 37 PERMISSION_DEV_CHANNEL = 1 << 5, |
| 38 | 38 |
| 39 // NOTE: If you add stuff be sure to update PERMISSION_ALL_BITS. | 39 // NOTE: If you add stuff be sure to update PERMISSION_ALL_BITS. |
| 40 | 40 |
| 41 // Meta permission for initializing plugins registered on the command line | 41 // Meta permission for initializing plugins registered on the command line |
| 42 // that get all permissions. | 42 // that get all permissions. |
| 43 PERMISSION_ALL_BITS = PERMISSION_DEV | | 43 PERMISSION_ALL_BITS = PERMISSION_DEV | PERMISSION_PRIVATE | |
| 44 PERMISSION_PRIVATE | | |
| 45 PERMISSION_BYPASS_USER_GESTURE | | 44 PERMISSION_BYPASS_USER_GESTURE | |
| 46 PERMISSION_TESTING | | 45 PERMISSION_TESTING | |
| 47 PERMISSION_FLASH | | 46 PERMISSION_FLASH | |
| 48 PERMISSION_DEV_CHANNEL | 47 PERMISSION_DEV_CHANNEL |
| 49 }; | 48 }; |
| 50 | 49 |
| 51 class PPAPI_SHARED_EXPORT PpapiPermissions { | 50 class PPAPI_SHARED_EXPORT PpapiPermissions { |
| 52 public: | 51 public: |
| 53 // Initializes the permissions struct with no permissions. | 52 // Initializes the permissions struct with no permissions. |
| 54 PpapiPermissions(); | 53 PpapiPermissions(); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 74 | 73 |
| 75 private: | 74 private: |
| 76 uint32 permissions_; | 75 uint32 permissions_; |
| 77 | 76 |
| 78 // Note: Copy & assign supported. | 77 // Note: Copy & assign supported. |
| 79 }; | 78 }; |
| 80 | 79 |
| 81 } // namespace ppapi | 80 } // namespace ppapi |
| 82 | 81 |
| 83 #endif // PPAPI_SHARED_IMPL_PPAPI_PERMISSIONS_H_ | 82 #endif // PPAPI_SHARED_IMPL_PPAPI_PERMISSIONS_H_ |
| OLD | NEW |