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

Unified Diff: ppapi/c/dev/ppb_messaging_deprecated.h

Issue 564573002: PPAPI: Make PPP_MessageHandler work in PNaCl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge 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/ppp_message_handler.idl ('k') | ppapi/c/ppb_messaging.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/dev/ppb_messaging_deprecated.h
diff --git a/ppapi/c/dev/ppb_messaging_deprecated.h b/ppapi/c/dev/ppb_messaging_deprecated.h
new file mode 100644
index 0000000000000000000000000000000000000000..045c9d9ba7d571e50bf33b0b7fe1f8f721a66723
--- /dev/null
+++ b/ppapi/c/dev/ppb_messaging_deprecated.h
@@ -0,0 +1,47 @@
+/* Copyright 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.
+ */
+
+#ifndef PPAPI_C_DEV_IMPL_PPB_MESSAGING_DEPRECATED_H_
+#define PPAPI_C_DEV_IMPL_PPB_MESSAGING_DEPRECATED_H_
+
+#include "ppapi/c/pp_instance.h"
+#include "ppapi/c/pp_resource.h"
+#include "ppapi/c/pp_stdint.h"
+#include "ppapi/c/pp_var.h"
+
+/* dev, deprecated */
+#define PPB_MESSAGING_INTERFACE_1_1_DEPRECATED "PPB_Messaging;1.1"
+
+/**
+ * This file defines a dev-channel-only API, PPB_Messaging;1.1 that is
+ * deprecated, but which still should provide ABI compatibility for a little
+ * bit longer to give time to transition off of it. The header is *not* provided
+ * in ppapi/c/ppb_messaging.h, in order to push clients to the new API,
+ * version 1.2.
+ * TODO(dmichael): Delete this API altogether when all uses are gone.
+ * crbug.com/414398
+ */
+struct PPP_MessageHandler_0_1_Deprecated { /* dev */
+ void (*HandleMessage)(PP_Instance instance,
+ void* user_data,
+ struct PP_Var message);
+ struct PP_Var (*HandleBlockingMessage)(PP_Instance instance,
+ void* user_data,
+ struct PP_Var message);
+ void (*Destroy)(PP_Instance instance, void* user_data);
+};
+
+struct PPB_Messaging_1_1_Deprecated { /* dev */
+ void (*PostMessage)(PP_Instance instance, struct PP_Var message);
+ int32_t (*RegisterMessageHandler)(
+ PP_Instance instance,
+ void* user_data,
+ const struct PPP_MessageHandler_0_1_Deprecated* handler,
+ PP_Resource message_loop);
+ void (*UnregisterMessageHandler)(PP_Instance instance);
+};
+
+#endif /* PPAPI_C_DEV_IMPL_PPB_MESSAGING_DEPRECATED_H_ */
+
« no previous file with comments | « ppapi/api/ppp_message_handler.idl ('k') | ppapi/c/ppb_messaging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698