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

Unified Diff: remoting/host/chromoting_host.h

Issue 6711033: A new authenticated connection evicts an old one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 months 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/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_;

Powered by Google App Engine
This is Rietveld 408576698