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_INSTANCE_H_ | 5 #ifndef PPAPI_C_PP_INSTANCE_H_ |
6 #define PPAPI_C_PP_INSTANCE_H_ | 6 #define PPAPI_C_PP_INSTANCE_H_ |
7 | 7 |
8 /** | 8 /** |
9 * @file | 9 * @file |
10 * Defines the API ... | 10 * This file defines the PP_Instance type which uniquely identifies one module |
| 11 * instance. |
11 */ | 12 */ |
12 | 13 |
13 #include "ppapi/c/pp_macros.h" | 14 #include "ppapi/c/pp_macros.h" |
14 #include "ppapi/c/pp_stdint.h" | 15 #include "ppapi/c/pp_stdint.h" |
15 | 16 |
16 /** | 17 /** |
17 * @addtogroup Typedefs | 18 * @addtogroup Typedefs |
18 * @{ | 19 * @{ |
19 */ | 20 */ |
20 | 21 |
21 /** A PP_Instance uniquely identifies one plugin instance, which is one time | 22 /** |
22 * that a page says \<embed>. There can be multiple instances of the same plugin | 23 * The PP_Instance value uniquely identifies one instance of a module |
23 * type on a page that will all be in the same module. | 24 * (.nexe/PP_Module). There will be one module instance for every |
| 25 * \<embed> tag on a page. |
24 * | 26 * |
25 * The identifier is an opaque handle assigned by the browser to the plugin. It | 27 * This identifier is an opaque handle assigned by the browser to the module. It |
26 * is guaranteed never to be 0, so a plugin can initialize it to 0 to | 28 * is guaranteed never to be 0, so a module can initialize it to 0 to |
27 * indicate a "NULL handle." | 29 * indicate a "NULL handle." |
28 */ | 30 */ |
29 typedef int32_t PP_Instance; | 31 typedef int32_t PP_Instance; |
30 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Instance, 4); | 32 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Instance, 4); |
31 /** | 33 /** |
32 * @} | 34 * @} |
33 */ | 35 */ |
34 | 36 |
35 #endif /* PPAPI_C_PP_INSTANCE_H_ */ | 37 #endif /* PPAPI_C_PP_INSTANCE_H_ */ |
36 | 38 |
OLD | NEW |