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

Unified Diff: remoting/host/client_session.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: remoting/host/client_session.h
diff --git a/remoting/host/client_session.h b/remoting/host/client_session.h
index 084d153a2de2acaa64684c73dc115e6ed6375d30..ee4c52a2f76ef861cebd66175eb9d813078ba2a2 100644
--- a/remoting/host/client_session.h
+++ b/remoting/host/client_session.h
@@ -34,8 +34,6 @@ class ClientSession : public protocol::HostEventStub,
// Callback interface for passing events to the ChromotingHost.
class EventHandler {
public:
- virtual ~EventHandler() {}
-
// Called after authentication has finished successfully.
virtual void OnSessionAuthenticated(ClientSession* client) = 0;
@@ -61,6 +59,9 @@ class ClientSession : public protocol::HostEventStub,
ClientSession* client,
const std::string& channel_name,
const protocol::TransportRoute& route) = 0;
+
+ protected:
+ virtual ~EventHandler() {}
};
ClientSession(EventHandler* event_handler,

Powered by Google App Engine
This is Rietveld 408576698