summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_channel_proxy.h
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-28 22:09:45 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-28 22:09:45 +0000
commit16395142c1bd6b2203fa67585ec52316f8156aaa (patch)
treebb0b96512330d037e96563dd1dc9686250162661 /ipc/ipc_channel_proxy.h
parent6349deef4335dee8a99fdbec27baf93bdf33adbb (diff)
downloadchromium_src-16395142c1bd6b2203fa67585ec52316f8156aaa.zip
chromium_src-16395142c1bd6b2203fa67585ec52316f8156aaa.tar.gz
chromium_src-16395142c1bd6b2203fa67585ec52316f8156aaa.tar.bz2
The messages attached to the task created by an IPC ChannelProxy are leaked when the message loop is destroyed (the MessageLoop deletes its pending tasks on destruction, but not the messages).
BUG=17091 TEST=Run the ui_tests with Purify. We should not be leaking messages. Review URL: http://codereview.chromium.org/159366 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21900 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_channel_proxy.h')
-rw-r--r--ipc/ipc_channel_proxy.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipc/ipc_channel_proxy.h b/ipc/ipc_channel_proxy.h
index 77ddd87..e884818 100644
--- a/ipc/ipc_channel_proxy.h
+++ b/ipc/ipc_channel_proxy.h
@@ -14,6 +14,8 @@ class MessageLoop;
namespace IPC {
+class SendTask;
+
//-----------------------------------------------------------------------------
// IPC::ChannelProxy
//
@@ -174,6 +176,7 @@ class ChannelProxy : public Message::Sender {
private:
friend class ChannelProxy;
+ friend class SendTask;
// Create the Channel
void CreateChannel(const std::string& id, const Channel::Mode& mode);
@@ -199,6 +202,8 @@ class ChannelProxy : public Message::Sender {
Context* context() { return context_; }
private:
+ friend class SendTask;
+
void Init(const std::string& channel_id, Channel::Mode mode,
MessageLoop* ipc_thread_loop, bool create_pipe_now);