| OLD | NEW |
| 1 /* Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2010 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_C_PP_RESOURCE_H_ | 5 #ifndef PPAPI_C_PP_RESOURCE_H_ |
| 6 #define PPAPI_C_PP_RESOURCE_H_ | 6 #define PPAPI_C_PP_RESOURCE_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_macros.h" | 8 #include "ppapi/c/pp_macros.h" |
| 9 #include "ppapi/c/pp_stdint.h" | 9 #include "ppapi/c/pp_stdint.h" |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * | 23 * |
| 24 * Resources are reference counted. Use AddRefResource and ReleaseResource to | 24 * Resources are reference counted. Use AddRefResource and ReleaseResource to |
| 25 * manage your reference count of a resource. The data will be automatically | 25 * manage your reference count of a resource. The data will be automatically |
| 26 * destroyed when the internal reference count reaches 0. | 26 * destroyed when the internal reference count reaches 0. |
| 27 * | 27 * |
| 28 * Value is an opaque handle assigned by the browser to the resource. It is | 28 * Value is an opaque handle assigned by the browser to the resource. It is |
| 29 * guaranteed never to be 0 for a valid resource, so a plugin can initialize | 29 * guaranteed never to be 0 for a valid resource, so a plugin can initialize |
| 30 * it to 0 to indicate a "NULL handle." Some interfaces may return a NULL | 30 * it to 0 to indicate a "NULL handle." Some interfaces may return a NULL |
| 31 * resource to indicate failure. | 31 * resource to indicate failure. |
| 32 */ | 32 */ |
| 33 typedef int64_t PP_Resource; | 33 typedef int32_t PP_Resource; |
| 34 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Resource, 8); | 34 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Resource, 4); |
| 35 | 35 |
| 36 /** | 36 /** |
| 37 * @} | 37 * @} |
| 38 * End addtogroup PP | 38 * End addtogroup PP |
| 39 */ | 39 */ |
| 40 | 40 |
| 41 #endif /* PPAPI_C_PP_RESOURCE_H_ */ | 41 #endif /* PPAPI_C_PP_RESOURCE_H_ */ |
| 42 | 42 |
| OLD | NEW |