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

Unified Diff: ipc/ipc_listener.h

Issue 10694111: RefCounted types should not have public destructors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix android & Win compiles Created 8 years, 5 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
« no previous file with comments | « gpu/command_buffer/service/shader_translator.cc ('k') | ipc/ipc_sender.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_listener.h
diff --git a/ipc/ipc_listener.h b/ipc/ipc_listener.h
index 49c12287f56affa03fa247a87a7830b531180eaf..9189eec7d1100146feb82b435b79b1a28d888311 100644
--- a/ipc/ipc_listener.h
+++ b/ipc/ipc_listener.h
@@ -16,8 +16,6 @@ class Message;
// Implemented by consumers of a Channel to receive messages.
class IPC_EXPORT Listener {
public:
- virtual ~Listener() {}
-
// Called when a message is received. Returns true iff the message was
// handled.
virtual bool OnMessageReceived(const Message& message) = 0;
@@ -39,6 +37,9 @@ class IPC_EXPORT Listener {
// has an error that causes the listening channel to close.
virtual void OnChannelListenError() {}
#endif // OS_POSIX
+
+ protected:
+ virtual ~Listener() {}
};
} // namespace IPC
« no previous file with comments | « gpu/command_buffer/service/shader_translator.cc ('k') | ipc/ipc_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698