diff options
author | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-06 18:07:10 +0000 |
---|---|---|
committer | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-06 18:07:10 +0000 |
commit | c8ea1ef58babf7b373a30d54e5806598cfdf7a5b (patch) | |
tree | 25e495ddd543402f644d5b13908a8f08301e1af6 | |
parent | ae3ec240a09e84a3760c452cd594132cc26de955 (diff) | |
download | chromium_src-c8ea1ef58babf7b373a30d54e5806598cfdf7a5b.zip chromium_src-c8ea1ef58babf7b373a30d54e5806598cfdf7a5b.tar.gz chromium_src-c8ea1ef58babf7b373a30d54e5806598cfdf7a5b.tar.bz2 |
Adds missing virtual destructors on a couple of interface classes.
Patch contributed by knorton@google.com
See http://codereview.chromium.org/270
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1822 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/common/ipc_channel.h | 2 | ||||
-rw-r--r-- | chrome/common/ipc_message.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/chrome/common/ipc_channel.h b/chrome/common/ipc_channel.h index 94d41a3..331dac6 100644 --- a/chrome/common/ipc_channel.h +++ b/chrome/common/ipc_channel.h @@ -23,6 +23,8 @@ class Channel : public MessageLoopForIO::Watcher, // Implemented by consumers of a Channel to receive messages. class Listener { public: + virtual ~Listener() {} + // Called when a message is received. virtual void OnMessageReceived(const Message& message) = 0; diff --git a/chrome/common/ipc_message.h b/chrome/common/ipc_message.h index bf922a4d..8163d4f 100644 --- a/chrome/common/ipc_message.h +++ b/chrome/common/ipc_message.h @@ -28,6 +28,8 @@ class Message : public Pickle { // Implemented by objects that can send IPC messages across a channel. class Sender { public: + virtual ~Sender() {} + // Sends the given IPC message. The implementor takes ownership of the // given Message regardless of whether or not this method succeeds. This // is done to make this method easier to use. Returns true on success and |