summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-22 22:19:24 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-22 22:19:24 +0000
commit00ed48fe2d42c952a3d41c83ed26a130342521aa (patch)
tree80e7d1b3f210725306d505c21a989c963e902f0a /ipc
parent8c7697346f2632d3356e9d57b8f105e9cfa26747 (diff)
downloadchromium_src-00ed48fe2d42c952a3d41c83ed26a130342521aa.zip
chromium_src-00ed48fe2d42c952a3d41c83ed26a130342521aa.tar.gz
chromium_src-00ed48fe2d42c952a3d41c83ed26a130342521aa.tar.bz2
Revert "Revert "Const-ify RefCountedThreadSafe::AddRef and Release.""
chrome_frame failed to compile last time. I needed to add a "mutable" to a member variable in chrome_frame/metrics_service.cc. Review URL: http://codereview.chromium.org/3971004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63574 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc')
-rw-r--r--ipc/ipc_channel_proxy.cc2
-rw-r--r--ipc/ipc_channel_proxy.h4
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();
}
};