summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_message.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-21 20:03:24 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-21 20:03:24 +0000
commit6541227a9c1aa7a492dd1b671ef9bca26236b8e7 (patch)
tree8fe17eb6198b90237e117a809b3c9f55318973a2 /ipc/ipc_message.h
parent523d40835e4524c5e2ee2d4b8cfe1d7ca765f686 (diff)
downloadchromium_src-6541227a9c1aa7a492dd1b671ef9bca26236b8e7.zip
chromium_src-6541227a9c1aa7a492dd1b671ef9bca26236b8e7.tar.gz
chromium_src-6541227a9c1aa7a492dd1b671ef9bca26236b8e7.tar.bz2
Create a message filter for message port and worker messages. This allows a nice cleanup of getting rid of the notifications when RenderMessageFilter and WorkerProcessHost go away. SafeBrowsingResourceHandler doesn't need it anymore as well, since it now overrides OnRequestClosed() which does the same thing.
Review URL: http://codereview.chromium.org/6055002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69862 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_message.h')
-rw-r--r--ipc/ipc_message.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/ipc/ipc_message.h b/ipc/ipc_message.h
index 5ffddde..accb2e3 100644
--- a/ipc/ipc_message.h
+++ b/ipc/ipc_message.h
@@ -130,27 +130,29 @@ class Message : public Pickle {
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;