Index: remoting/host/chromoting_host.h |
diff --git a/remoting/host/chromoting_host.h b/remoting/host/chromoting_host.h |
index fc6daaf957acf4bea2ba89f3b3a6bccd952eb72e..1a3799b3972eb8aaa3960ce24aec179a612dbac3 100644 |
--- a/remoting/host/chromoting_host.h |
+++ b/remoting/host/chromoting_host.h |
@@ -106,8 +106,8 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>, |
//////////////////////////////////////////////////////////////////////////// |
// DesktopEnvironment::EventHandler implementations |
- virtual void LocalLoginSucceeded(); |
- virtual void LocalLoginFailed(); |
+ virtual void LocalLoginSucceeded(protocol::ConnectionToClient* client); |
+ virtual void LocalLoginFailed(protocol::ConnectionToClient* client); |
// Callback for ChromotingServer. |
void OnNewClientSession( |
@@ -122,8 +122,8 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>, |
protocol::HostStub* host_stub() const; |
// This setter is only used in unit test to simulate client connection. |
- void set_connection(protocol::ConnectionToClient* conn) { |
- connection_ = conn; |
+ void add_connection(protocol::ConnectionToClient* conn) { |
+ connections_.push_back(conn); |
} |
private: |
@@ -167,9 +167,8 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>, |
AccessVerifier access_verifier_; |
- // A ConnectionToClient manages the connectino to a remote client. |
- // TODO(hclam): Expand this to a list of clients. |
- scoped_refptr<protocol::ConnectionToClient> connection_; |
+ // A ConnectionToClient manages the connection to a remote client. |
+ std::vector<scoped_refptr<protocol::ConnectionToClient>> connections_; |
// Session manager for the host process. |
scoped_refptr<ScreenRecorder> recorder_; |