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

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

Issue 7310007: Trivial fixes to PPAPI (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 5 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2011 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_PPB_CORE_H_ 5 #ifndef PPAPI_C_PPB_CORE_H_
6 #define PPAPI_C_PPB_CORE_H_ 6 #define PPAPI_C_PPB_CORE_H_
7 7
8 #include "ppapi/c/pp_bool.h" 8 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/pp_resource.h" 9 #include "ppapi/c/pp_resource.h"
10 #include "ppapi/c/pp_stdint.h" 10 #include "ppapi/c/pp_stdint.h"
11 #include "ppapi/c/pp_time.h" 11 #include "ppapi/c/pp_time.h"
12 #include "ppapi/c/pp_var.h"
dmichael (off chromium) 2011/07/06 17:57:10 Okay, so this time you really are removing an incl
noelallen1 2011/07/06 22:16:45 I'll keep an eye out. Since those are different r
13 12
14 struct PP_CompletionCallback; 13 struct PP_CompletionCallback;
15 14
16 #define PPB_CORE_INTERFACE_0_5 "PPB_Core;0.5" 15 #define PPB_CORE_INTERFACE_0_5 "PPB_Core;0.5"
17 #define PPB_CORE_INTERFACE PPB_CORE_INTERFACE_0_5 16 #define PPB_CORE_INTERFACE PPB_CORE_INTERFACE_0_5
18 17
19 /** 18 /**
20 * @file 19 * @file
21 * This file defines the PPB_Core interface defined by the browser and 20 * This file defines the PPB_Core interface defined by the browser and
22 * and containing pointers to functions related to memory management, 21 * and containing pointers to functions related to memory management,
(...skipping 14 matching lines...) Expand all
37 /** 36 /**
38 * Same as AddRefVar for Resources. 37 * Same as AddRefVar for Resources.
39 * AddRefResource is a pointer to a function that adds a reference to 38 * AddRefResource is a pointer to a function that adds a reference to
40 * a resource. 39 * a resource.
41 * 40 *
42 * @param[in] config A PP_Resource containing the resource. 41 * @param[in] config A PP_Resource containing the resource.
43 */ 42 */
44 void (*AddRefResource)(PP_Resource resource); 43 void (*AddRefResource)(PP_Resource resource);
45 44
46 /** 45 /**
46 * Same as ReleaseVar for Resources.
dmichael (off chromium) 2011/07/06 17:57:10 FYI this line is going to disappear when http://co
noelallen1 2011/07/06 22:16:45 Done.
47 * ReleaseResource is a pointer to a function that removes a reference 47 * ReleaseResource is a pointer to a function that removes a reference
48 * from a resource. 48 * from a resource.
49 * 49 *
50 * @param[in] config A PP_Resource containing the resource. 50 * @param[in] config A PP_Resource containing the resource.
51 */ 51 */
52 /*Same as ReleaseVar for Resources. */
53 void (*ReleaseResource)(PP_Resource resource); 52 void (*ReleaseResource)(PP_Resource resource);
54 53
55 /** 54 /**
56 * MemAlloc is a pointer to a function that allocate memory. 55 * MemAlloc is a pointer to a function that allocate memory.
57 * 56 *
58 * @param[in] num_bytes A number of bytes to allocate. 57 * @param[in] num_bytes A number of bytes to allocate.
59 * @return A pointer to the memory if successful, NULL If the 58 * @return A pointer to the memory if successful, NULL If the
60 * allocation fails. 59 * allocation fails.
61 */ 60 */
62 void* (*MemAlloc)(uint32_t num_bytes); 61 void* (*MemAlloc)(uint32_t num_bytes);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 * @return A PP_BOOL containing PP_TRUE if the current thread is the main 130 * @return A PP_BOOL containing PP_TRUE if the current thread is the main
132 * pepper thread, otherwise PP_FALSE. 131 * pepper thread, otherwise PP_FALSE.
133 */ 132 */
134 PP_Bool (*IsMainThread)(); 133 PP_Bool (*IsMainThread)();
135 }; 134 };
136 /** 135 /**
137 * @} 136 * @}
138 */ 137 */
139 138
140 139
141 #endif /* PPAPI_C_DEV_PPB_CORE_DEV_H_ */ 140 #endif /* PPAPI_C_PPB_CORE_H_ */
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698