Chromium Code Reviews| 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; |