Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Unified Diff: ipc/ipc_message.h

Issue 10383262: RefCounted types should not have public destructors, delegate cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ipc/ipc_message.h
diff --git a/ipc/ipc_message.h b/ipc/ipc_message.h
index 2c85e42ab75877f1a558624a967ce24ee36d96b3..a7d5424204fad703f479553fdccf9064fe222293 100644
--- a/ipc/ipc_message.h
+++ b/ipc/ipc_message.h
@@ -42,13 +42,14 @@ class IPC_EXPORT Message : public Pickle {
// Implemented by objects that can send IPC messages across a channel.
class IPC_EXPORT 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
// false otherwise.
virtual bool Send(Message* msg) = 0;
+
+ protected:
+ virtual ~Sender() {}
};
enum PriorityValue {

Powered by Google App Engine
This is Rietveld 408576698