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

Unified Diff: ipc/ipc_message.h

Issue 6055002: Create a message filter for message port messages. This allows a nice cleanu... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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
Index: ipc/ipc_message.h
===================================================================
--- ipc/ipc_message.h (revision 69724)
+++ ipc/ipc_message.h (working copy)
@@ -130,27 +130,29 @@
header()->routing = new_id;
}
- template<class T>
- static bool Dispatch(const Message* msg, T* obj, void (T::*func)()) {
+ template<class T, class S>
+ static bool Dispatch(const Message* msg, T* obj, S* sender,
+ void (T::*func)()) {
(obj->*func)();
return true;
}
- template<class T>
- static bool Dispatch(const Message* msg, T* obj, void (T::*func)() const) {
+ template<class T, class S>
+ static bool Dispatch(const Message* msg, T* obj, S* sender,
+ void (T::*func)() const) {
(obj->*func)();
return true;
}
- template<class T>
- static bool Dispatch(const Message* msg, T* obj,
+ template<class T, class S>
+ static bool Dispatch(const Message* msg, T* obj, S* sender,
void (T::*func)(const Message&)) {
(obj->*func)(*msg);
return true;
}
- template<class T>
- static bool Dispatch(const Message* msg, T* obj,
+ template<class T, class S>
+ static bool Dispatch(const Message* msg, T* obj, S* sender,
void (T::*func)(const Message&) const) {
(obj->*func)(*msg);
return true;

Powered by Google App Engine
This is Rietveld 408576698