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

Unified Diff: remoting/protocol/session_manager.h

Issue 10383262: RefCounted types should not have public destructors, delegate cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make win bot happy Created 8 years, 6 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 | « remoting/host/client_session.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/session_manager.h
diff --git a/remoting/protocol/session_manager.h b/remoting/protocol/session_manager.h
index eb0c9db13b1e549be7d19280d03128811c592d50..fc9645c1a5f869491e45ffb10bd87a872e7d2e36 100644
--- a/remoting/protocol/session_manager.h
+++ b/remoting/protocol/session_manager.h
@@ -76,8 +76,8 @@ class AuthenticatorFactory;
// client side and one for the host side.
class SessionManager : public base::NonThreadSafe {
public:
- SessionManager() { }
- virtual ~SessionManager() { }
+ SessionManager() {}
+ virtual ~SessionManager() {}
enum IncomingSessionResponse {
// Accept the session.
@@ -97,8 +97,7 @@ class SessionManager : public base::NonThreadSafe {
class Listener {
public:
- Listener() { }
- ~Listener() { }
+ Listener() {}
// Called when the session manager is ready to create outgoing
// sessions. May be called from Init() or after Init()
@@ -115,6 +114,9 @@ class SessionManager : public base::NonThreadSafe {
// The callback must take ownership of the |session| if it ACCEPTs it.
virtual void OnIncomingSession(Session* session,
IncomingSessionResponse* response) = 0;
+
+ protected:
+ ~Listener() {}
};
// Initializes the session client. Caller retains ownership of the
« no previous file with comments | « remoting/host/client_session.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698