| 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 explicit PpapiPermissions(uint32 perms); | 33 explicit PpapiPermissions(uint32 perms); |
| 34 | 34 |
| 35 ~PpapiPermissions(); | 35 ~PpapiPermissions(); |
| 36 | 36 |
| 37 // Returns a permissions class with all features enabled. This is for testing | 37 // Returns a permissions class with all features enabled. This is for testing |
| 38 // and manually registered plugins. | 38 // and manually registered plugins. |
| 39 static PpapiPermissions AllPermissions(); | 39 static PpapiPermissions AllPermissions(); |
| 40 | 40 |
| 41 bool HasPermission(Permission perm) const; | 41 bool HasPermission(Permission perm) const; |
| 42 | 42 |
| 43 // TODO(brettw) bug 147507: Remove this when we fix the permissions bug |
| 44 // (this was added for logging). |
| 45 uint32 GetBits() const { return permissions_; } |
| 46 |
| 43 private: | 47 private: |
| 44 uint32 permissions_; | 48 uint32 permissions_; |
| 45 | 49 |
| 46 // Note: Copy & assign supported. | 50 // Note: Copy & assign supported. |
| 47 }; | 51 }; |
| 48 | 52 |
| 49 } // namespace ppapi | 53 } // namespace ppapi |
| 50 | 54 |
| 51 #endif // PPAPI_SHARED_IMPL_PPAPI_PERMISSIONS_H_ | 55 #endif // PPAPI_SHARED_IMPL_PPAPI_PERMISSIONS_H_ |
| OLD | NEW |