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

Unified Diff: ppapi/proxy/resource_message_test_sink.cc

Issue 283623002: Add support for passing an arbitrary parameter to an IPC message handler. The motivation is for Web… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 years, 7 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 | « ipc/ipc_message_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/resource_message_test_sink.cc
===================================================================
--- ppapi/proxy/resource_message_test_sink.cc (revision 270218)
+++ ppapi/proxy/resource_message_test_sink.cc (working copy)
@@ -22,9 +22,10 @@
for (size_t i = 0; i < sink.message_count(); i++) {
const IPC::Message* msg = sink.GetMessageAt(i);
if (msg->type() == WrapperMessage::ID) {
- Params cur_params;
- IPC::Message cur_msg;
- WrapperMessage::Read(msg, &cur_params, &cur_msg);
+ typename WrapperMessage::Param params;
+ WrapperMessage::Read(msg, &params);
+ Params cur_params = params.a;
+ IPC::Message cur_msg = params.b;
if (cur_msg.type() == id) {
result.push_back(std::make_pair(cur_params, cur_msg));
}
« no previous file with comments | « ipc/ipc_message_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698