Chromium Code Reviews| Index: ppapi/proxy/dispatch_reply_message.h |
| =================================================================== |
| --- ppapi/proxy/dispatch_reply_message.h (revision 270145) |
| +++ ppapi/proxy/dispatch_reply_message.h (working copy) |
| @@ -129,6 +129,12 @@ |
| (obj->*method)(reply_params); |
| } |
| +#define PPAPI_BEGIN_MESSAGE_MAP(class_name, msg) \ |
|
brettw
2014/05/13 21:55:33
Can you add a comment about why we need a differen
jam
2014/05/13 21:59:56
Done.
|
| + { \ |
| + typedef class_name _IpcMessageHandlerClass; \ |
| + const IPC::Message& ipc_message__ = msg; \ |
| + switch (ipc_message__.type()) { \ |
| + |
| // Note that this only works for message with 1 or more parameters. For |
| // 0-parameter messages you need to use the _0 version below (since there are |
| // no params in the message). |
| @@ -158,6 +164,10 @@ |
| } \ |
| break; |
| +#define PPAPI_END_MESSAGE_MAP() \ |
| + } \ |
| +} |
| + |
| } // namespace proxy |
| } // namespace ppapi |