diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-22 00:19:18 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-22 00:19:18 +0000 |
commit | a571d3d39325f0ae3b2e060f3d274b5903cbafcf (patch) | |
tree | 6adaed8b87c549299fbb679e1bb728de9118269a /ipc | |
parent | 952ec4b4ac9a7a92fd3014f782ce0a0ba0ef7b83 (diff) | |
download | chromium_src-a571d3d39325f0ae3b2e060f3d274b5903cbafcf.zip chromium_src-a571d3d39325f0ae3b2e060f3d274b5903cbafcf.tar.gz chromium_src-a571d3d39325f0ae3b2e060f3d274b5903cbafcf.tar.bz2 |
Const-ify RefCountedThreadSafe::AddRef and Release.
Review URL: http://codereview.chromium.org/3869003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63457 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/ipc_channel_proxy.cc | 2 | ||||
-rw-r--r-- | ipc/ipc_channel_proxy.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ipc/ipc_channel_proxy.cc b/ipc/ipc_channel_proxy.cc index feca4eb..dcc66aad 100644 --- a/ipc/ipc_channel_proxy.cc +++ b/ipc/ipc_channel_proxy.cc @@ -54,7 +54,7 @@ bool ChannelProxy::MessageFilter::OnMessageReceived(const Message& message) { return false; } -void ChannelProxy::MessageFilter::OnDestruct() { +void ChannelProxy::MessageFilter::OnDestruct() const { delete this; } diff --git a/ipc/ipc_channel_proxy.h b/ipc/ipc_channel_proxy.h index 1ce9986..53a39b4 100644 --- a/ipc/ipc_channel_proxy.h +++ b/ipc/ipc_channel_proxy.h @@ -87,11 +87,11 @@ class ChannelProxy : public Message::Sender { // Called when the message filter is about to be deleted. This gives // derived classes the option of controlling which thread they're deleted // on etc. - virtual void OnDestruct(); + virtual void OnDestruct() const; }; struct MessageFilterTraits { - static void Destruct(MessageFilter* filter) { + static void Destruct(const MessageFilter* filter) { filter->OnDestruct(); } }; |