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

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

Issue 10069035: Add a way to implement GetInterface in the broker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
OLDNEW
1 /* Copyright (c) 2011 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 5
6 /* From ppp.idl modified Mon Aug 8 06:47:44 2011. */ 6 /* From ppp.idl modified Thu Apr 12 14:25:11 2012. */
7 7
8 #ifndef PPAPI_C_PPP_H_ 8 #ifndef PPAPI_C_PPP_H_
9 #define PPAPI_C_PPP_H_ 9 #define PPAPI_C_PPP_H_
10 10
11 #include "ppapi/c/pp_macros.h" 11 #include "ppapi/c/pp_macros.h"
12 #include "ppapi/c/pp_module.h"
13 #include "ppapi/c/pp_stdint.h"
14 #include "ppapi/c/ppb.h"
12 15
13 /** 16 /**
14 * @file 17 * @file
15 * This file defines three functions that your module must 18 * This file defines three functions that your module must
16 * implement to interact with the browser. 19 * implement to interact with the browser.
17 */ 20 */
18 21
19 22
20 23
21 #include "ppapi/c/pp_module.h" 24 #include "ppapi/c/pp_module.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 */ 123 */
121 PP_EXPORT const void* PPP_GetInterface(const char* interface_name); 124 PP_EXPORT const void* PPP_GetInterface(const char* interface_name);
122 /** 125 /**
123 * @} 126 * @}
124 */ 127 */
125 128
126 #ifdef __cplusplus 129 #ifdef __cplusplus
127 } /* extern "C" */ 130 } /* extern "C" */
128 #endif 131 #endif
129 132
133
134 /**
135 * @addtogroup Typedefs
136 * @{
137 */
138 /**
139 * Defines the type of the <code>PPP_InitializeModule</code> function.
140 */
141 typedef int32_t (*PP_InitializeModule_Func)(PP_Module module,
142 PPB_GetInterface get_interface);
viettrungluu 2012/04/12 22:14:07 Nit: Should you call this |get_browser_interface|
143
144 /**
145 * Defines the type of the <code>PPP_ShutdownModule</code> function.
viettrungluu 2012/04/12 22:14:07 PPP_GetInterface
146 */
147 typedef const void* (*PP_GetInterface_Func)(const char* interface_name);
viettrungluu 2012/04/12 22:14:07 Nit: Keep the same order as the PPP_... declaratio
148
149 /**
150 * Defines the type of the <code>PPP_ShutdownModule</code> function.
151 */
152 typedef void (*PP_ShutdownModule_Func)();
153 /**
154 * @}
155 */
156
130 #endif /* PPAPI_C_PPP_H_ */ 157 #endif /* PPAPI_C_PPP_H_ */
131 158
OLDNEW
« no previous file with comments | « ppapi/api/ppp.idl ('k') | ppapi/cpp/module_embedder.h » ('j') | ppapi/cpp/ppp_entrypoints.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698