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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/c/ppp.h
diff --git a/ppapi/c/ppp.h b/ppapi/c/ppp.h
index cb36b109694c8bd285f0fa367beb8e2c3c5eb8a9..5cdaa6ebfc767d4d31921e281f18e1db55cfbd32 100644
--- a/ppapi/c/ppp.h
+++ b/ppapi/c/ppp.h
@@ -1,14 +1,17 @@
-/* Copyright (c) 2011 The Chromium Authors. All rights reserved.
+/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
-/* From ppp.idl modified Mon Aug 8 06:47:44 2011. */
+/* From ppp.idl modified Thu Apr 12 14:25:11 2012. */
#ifndef PPAPI_C_PPP_H_
#define PPAPI_C_PPP_H_
#include "ppapi/c/pp_macros.h"
+#include "ppapi/c/pp_module.h"
+#include "ppapi/c/pp_stdint.h"
+#include "ppapi/c/ppb.h"
/**
* @file
@@ -127,5 +130,29 @@ PP_EXPORT const void* PPP_GetInterface(const char* interface_name);
} /* extern "C" */
#endif
+
+/**
+ * @addtogroup Typedefs
+ * @{
+ */
+/**
+ * Defines the type of the <code>PPP_InitializeModule</code> function.
+ */
+typedef int32_t (*PP_InitializeModule_Func)(PP_Module module,
+ PPB_GetInterface get_interface);
viettrungluu 2012/04/12 22:14:07 Nit: Should you call this |get_browser_interface|
+
+/**
+ * Defines the type of the <code>PPP_ShutdownModule</code> function.
viettrungluu 2012/04/12 22:14:07 PPP_GetInterface
+ */
+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
+
+/**
+ * Defines the type of the <code>PPP_ShutdownModule</code> function.
+ */
+typedef void (*PP_ShutdownModule_Func)();
+/**
+ * @}
+ */
+
#endif /* PPAPI_C_PPP_H_ */
« 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