Add PPAPI_BEGIN_MESSAGE_MAP and PPAPI_END_MESSAGE_MAP to be used when dispatching IPCs using PPAPI_DISPATCH_*. This is because the IPC_BEGIN_MESSAGE_MAP macros are closely tied to IPC_MESSAGE_HANDLERS.
This is split off from https://codereview.chromium.org/283623002/
BUG=304341
R=brettw@chromium.org, tsepez@chromium.org
Review URL: https://codereview.chromium.org/281803003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270218 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ppapi/proxy/video_capture_resource.cc b/ppapi/proxy/video_capture_resource.cc
index 5ea6ca6..8931b8f 100644
--- a/ppapi/proxy/video_capture_resource.cc
+++ b/ppapi/proxy/video_capture_resource.cc
@@ -45,7 +45,7 @@
return;
}
- IPC_BEGIN_MESSAGE_MAP(VideoCaptureResource, msg)
+ PPAPI_BEGIN_MESSAGE_MAP(VideoCaptureResource, msg)
PPAPI_DISPATCH_PLUGIN_RESOURCE_CALL(
PpapiPluginMsg_VideoCapture_OnDeviceInfo,
OnPluginMsgOnDeviceInfo)
@@ -59,7 +59,7 @@
PpapiPluginMsg_VideoCapture_OnBufferReady,
OnPluginMsgOnBufferReady)
PPAPI_DISPATCH_PLUGIN_RESOURCE_CALL_UNHANDLED(NOTREACHED())
- IPC_END_MESSAGE_MAP()
+ PPAPI_END_MESSAGE_MAP()
}
int32_t VideoCaptureResource::EnumerateDevices(