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

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
« no previous file with comments | « remoting/host/chromoting_host_unittest.cc ('k') | remoting/host/client_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/client_session.h
diff --git a/remoting/host/client_session.h b/remoting/host/client_session.h
index a301ff937baba8f63299c581f478513b7e26a812..9dd8ff0ff305be2a8601ca9c8c9483ba18cbcf58 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. OnSessionClosed() is notified after this handler
+ // returns.
+ virtual void OnSessionAuthenticationFailed(ClientSession* client) = 0;
+
+ // Called after connection has failed or after the client closed it.
virtual void OnSessionClosed(ClientSession* client) = 0;
+
+ // Called to notify of each message's sequence number. The
+ // callback must not 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;
« no previous file with comments | « remoting/host/chromoting_host_unittest.cc ('k') | remoting/host/client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698