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

Unified Diff: ppapi/proxy/message_handler.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/proxy/interface_list.cc ('k') | ppapi/proxy/message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/message_handler.h
diff --git a/ppapi/proxy/message_handler.h b/ppapi/proxy/message_handler.h
index 61ee639f0b1c2680f58c8c517aee7dd1dafdd7fa..1d047bb3d1314bdd98ca0c771172ee5bf1b91c1d 100644
--- a/ppapi/proxy/message_handler.h
+++ b/ppapi/proxy/message_handler.h
@@ -7,6 +7,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "ppapi/c/dev/ppb_messaging_deprecated.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/ppp_message_handler.h"
#include "ppapi/proxy/ppapi_proxy_export.h"
@@ -43,7 +44,16 @@ class PPAPI_PROXY_EXPORT MessageHandler {
// |error| is an out-param that will be set on failure.
static scoped_ptr<MessageHandler> Create(
PP_Instance instance,
- const PPP_MessageHandler_0_1* handler_if,
+ const PPP_MessageHandler_0_2* handler_if,
+ void* user_data,
+ PP_Resource message_loop,
+ int32_t* error);
+ // Provide temporary backwards compatibility. TODO(dmichael): Remove all
+ // references to PPB_Messaging_1_1 and PPP_MessageHandler_0_1.
+ // crbug.com/414398
+ static scoped_ptr<MessageHandler> CreateDeprecated(
+ PP_Instance instance,
+ const PPP_MessageHandler_0_1_Deprecated* handler_if,
void* user_data,
PP_Resource message_loop,
int32_t* error);
@@ -57,12 +67,18 @@ class PPAPI_PROXY_EXPORT MessageHandler {
private:
MessageHandler(PP_Instance instance,
- const PPP_MessageHandler_0_1* handler_if,
+ const PPP_MessageHandler_0_2* handler_if,
void* user_data,
scoped_refptr<MessageLoopResource> message_loop);
+ MessageHandler(PP_Instance instance,
+ const PPP_MessageHandler_0_1_Deprecated* handler_if,
+ void* user_data,
+ scoped_refptr<MessageLoopResource> message_loop);
+
PP_Instance instance_;
- const PPP_MessageHandler_0_1* handler_if_;
+ const PPP_MessageHandler_0_2* handler_if_;
+ const PPP_MessageHandler_0_1_Deprecated* handler_if_0_1_;
void* user_data_;
scoped_refptr<MessageLoopResource> message_loop_;
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698