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

Unified Diff: remoting/host/client_session.h

Issue 8662001: Remove AccessVerifier interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 a301ff937baba8f63299c581f478513b7e26a812..4e94d1703c5e762133d29d9b7de025532fef426f 100644
--- a/remoting/host/client_session.h
+++ b/remoting/host/client_session.h
@@ -31,8 +31,19 @@ class ClientSession : public protocol::HostStub,
public:
virtual ~EventHandler() {}
+ // Called after authentication has finished successfully.
virtual void OnSessionAuthenticated(ClientSession* client) = 0;
+
+ // Called after authentication has failed. Must not tear doen this
Wez 2011/11/23 01:23:04 typo: doen
Sergey Ulanov 2011/11/23 21:18:46 Done.
+ // object. Separate OnSessionClosed() is made after this handler
+ // returns.
+ virtual void OnSessionAuthenticationFailed(ClientSession* client) = 0;
+
+ // Called if connection has failed or after the client closed it.
virtual void OnSessionClosed(ClientSession* client) = 0;
+
+ // Called for to notify of each message's sequence number. The
+ // callback cannot tear down this object.
virtual void OnSessionSequenceNumber(ClientSession* client,
int64 sequence_number) = 0;
};
@@ -54,8 +65,8 @@ class ClientSession : public protocol::HostStub,
protocol::ConnectionToClient* connection) OVERRIDE;
virtual void OnConnectionClosed(
protocol::ConnectionToClient* connection) OVERRIDE;
- virtual void OnConnectionFailed(
- protocol::ConnectionToClient* connection) OVERRIDE;
+ virtual void OnConnectionFailed(protocol::ConnectionToClient* connection,
+ protocol::Session::Error error) OVERRIDE;
virtual void OnSequenceNumberUpdated(
protocol::ConnectionToClient* connection, int64 sequence_number) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698