Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Side by Side Diff: ppapi/c/pp_instance.h

Issue 5674004: Add compile assertions to enforce the sizes of all structs and enums in the C... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 * Defines the API ...
11 * 11 *
12 * @addtogroup PP 12 * @addtogroup PP
13 * @{ 13 * @{
14 */ 14 */
15 15
16 #include "ppapi/c/pp_macros.h"
16 #include "ppapi/c/pp_stdint.h" 17 #include "ppapi/c/pp_stdint.h"
17 18
18 /** A PP_Instance uniquely identifies one plugin instance, which is one time 19 /** A PP_Instance uniquely identifies one plugin instance, which is one time
19 * that a page says \<embed>. There can be multiple instances of the same plugin 20 * that a page says \<embed>. There can be multiple instances of the same plugin
20 * type on a page that will all be in the same module. 21 * type on a page that will all be in the same module.
21 * 22 *
22 * The identifier is an opaque handle assigned by the browser to the plugin. It 23 * The identifier is an opaque handle assigned by the browser to the plugin. It
23 * is guaranteed never to be 0, so a plugin can initialize it to 0 to 24 * is guaranteed never to be 0, so a plugin can initialize it to 0 to
24 * indicate a "NULL handle." 25 * indicate a "NULL handle."
25 */ 26 */
26 typedef int64_t PP_Instance; 27 typedef int64_t PP_Instance;
28 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Instance, 8);
27 29
28 /** 30 /**
29 * @} 31 * @}
30 * End addtogroup PP 32 * End addtogroup PP
31 */ 33 */
32 34
33 #endif // PPAPI_C_PP_INSTANCE_H_ 35 #endif // PPAPI_C_PP_INSTANCE_H_
OLDNEW
« ppapi/c/dev/pp_video_dev.h ('K') | « ppapi/c/pp_input_event.h ('k') | ppapi/c/pp_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698