Prevent an extra copy of data types that get passed into IPC messages when
sending them. This makes it so that types sendable via IPC no longer need
copy constructors.
BUG=12296
Review URL: http://codereview.chromium.org/112042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16497 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/common/ipc_fuzzing_tests.cc b/chrome/common/ipc_fuzzing_tests.cc
index 81487239..5d1f13b 100644
--- a/chrome/common/ipc_fuzzing_tests.cc
+++ b/chrome/common/ipc_fuzzing_tests.cc
@@ -116,7 +116,7 @@
enum { ID = SERVER_FIRST_IPC_TYPE };
MsgClassIS(const int& arg1, const std::wstring& arg2)
: IPC::MessageWithTuple< Tuple2<int, std::wstring> >(
- MSG_ROUTING_CONTROL, ID, MakeTuple(arg1, arg2)) {}
+ MSG_ROUTING_CONTROL, ID, MakeRefTuple(arg1, arg2)) {}
};
// Generic message class that is a wstring followed by an int.
@@ -125,7 +125,7 @@
enum { ID = SERVER_SECOND_IPC_TYPE };
MsgClassSI(const std::wstring& arg1, const int& arg2)
: IPC::MessageWithTuple< Tuple2<std::wstring, int> >(
- MSG_ROUTING_CONTROL, ID, MakeTuple(arg1, arg2)) {}
+ MSG_ROUTING_CONTROL, ID, MakeRefTuple(arg1, arg2)) {}
};
// Message to create a mutex in the IPC server, using the received name.
@@ -134,7 +134,7 @@
enum { ID = SERVER_THIRD_IPC_TYPE };
MsgDoMutex(const std::wstring& mutex_name, const int& unused)
: IPC::MessageWithTuple< Tuple2<std::wstring, int> >(
- MSG_ROUTING_CONTROL, ID, MakeTuple(mutex_name, unused)) {}
+ MSG_ROUTING_CONTROL, ID, MakeRefTuple(mutex_name, unused)) {}
};
class SimpleListener : public IPC::Channel::Listener {