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

Unified Diff: ppapi/c/ppb_mojo.h

Issue 598183002: Pepper: PPB_Mojo prototype. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « ppapi/api/ppb_mojo.idl ('k') | ppapi/examples/mojo/README » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/ppb_mojo.h
diff --git a/ppapi/c/ppb_mojo.h b/ppapi/c/ppb_mojo.h
new file mode 100644
index 0000000000000000000000000000000000000000..1cfba182053957e522444fc56efe77e8dcc55676
--- /dev/null
+++ b/ppapi/c/ppb_mojo.h
@@ -0,0 +1,47 @@
+/* Copyright (c) 2014 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 ppb_mojo.idl modified Wed Sep 24 14:54:16 2014. */
+
+#ifndef PPAPI_C_PPB_MOJO_H_
+#define PPAPI_C_PPB_MOJO_H_
+
+#include "ppapi/c/pp_completion_callback.h"
+#include "ppapi/c/pp_instance.h"
+#include "ppapi/c/pp_macros.h"
+#include "ppapi/c/pp_stdint.h"
+
+#define PPB_MOJO_INTERFACE_0_1 "PPB_Mojo;0.1"
+#define PPB_MOJO_INTERFACE PPB_MOJO_INTERFACE_0_1
+
+/**
+ * @file
+ */
+
+
+/**
+ * @addtogroup Interfaces
+ * @{
+ */
+/* An interface to expose Mojo services to pepper plugins. */
+struct PPB_Mojo_0_1 {
+ /*
+ * Connects to the given service_name, and provides a mojo_handle on success.
+ *
+ * TODO(teravest): It'd be nice to use something more typesafe than int32_t
+ * here.
+ */
+ int32_t (*GetHandle)(PP_Instance instance,
+ uint32_t* mojo_handle,
+ struct PP_CompletionCallback callback);
+};
+
+typedef struct PPB_Mojo_0_1 PPB_Mojo;
+/**
+ * @}
+ */
+
+#endif /* PPAPI_C_PPB_MOJO_H_ */
+
« no previous file with comments | « ppapi/api/ppb_mojo.idl ('k') | ppapi/examples/mojo/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698