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..0bceb44f97b4af6dbcf889cf23d18c9fe6aa72d8 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 down this |
| + // object. Separate OnSessionClosed() is made after this handler |
|
Wez
2011/11/29 05:58:47
nit: Separate OnSessionClosed() is made ... -> OnS
Sergey Ulanov
2011/11/29 18:52:01
Done.
|
| + // returns. |
| + virtual void OnSessionAuthenticationFailed(ClientSession* client) = 0; |
| + |
| + // Called if connection has failed or after the client closed it. |
|
Wez
2011/11/29 05:58:47
nit: if -> after?
Sergey Ulanov
2011/11/29 18:52:01
Done.
|
| virtual void OnSessionClosed(ClientSession* client) = 0; |
| + |
| + // Called for to notify of each message's sequence number. The |
|
Wez
2011/11/29 05:58:47
nit: for to notify of each message's ... -> to not
Sergey Ulanov
2011/11/29 18:52:01
Done.
|
| + // callback cannot tear down this object. |
|
Wez
2011/11/29 05:58:47
nit: cannot -> must not
Sergey Ulanov
2011/11/29 18:52:01
Done.
|
| 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; |