diff options
-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 |