Index: remoting/host/chromoting_host.h |
diff --git a/remoting/host/chromoting_host.h b/remoting/host/chromoting_host.h |
index 01a6d1715d8b0dc371e9523d62c023413129d971..5186988f0b9eda0052080b9df28fe84248b003e5 100644 |
--- a/remoting/host/chromoting_host.h |
+++ b/remoting/host/chromoting_host.h |
@@ -5,9 +5,9 @@ |
#ifndef REMOTING_HOST_CHROMOTING_HOST_H_ |
#define REMOTING_HOST_CHROMOTING_HOST_H_ |
+#include <list> |
#include <memory> |
#include <string> |
-#include <vector> |
#include "base/macros.h" |
#include "base/memory/ref_counted.h" |
@@ -66,8 +66,6 @@ |
public ClientSession::EventHandler, |
public HostStatusMonitor { |
public: |
- typedef std::vector<std::unique_ptr<ClientSession>> ClientSessions; |
- |
// |desktop_environment_factory| must outlive this object. |
ChromotingHost( |
DesktopEnvironmentFactory* desktop_environment_factory, |
@@ -135,8 +133,6 @@ |
pairing_registry_ = pairing_registry; |
} |
- const ClientSessions& client_sessions_for_tests() { return clients_; } |
- |
base::WeakPtr<ChromotingHost> AsWeakPtr() { |
return weak_factory_.GetWeakPtr(); |
} |
@@ -144,6 +140,7 @@ |
private: |
friend class ChromotingHostTest; |
+ typedef std::list<ClientSession*> ClientList; |
typedef ScopedVector<HostExtension> HostExtensionList; |
// Immediately disconnects all active clients. Host-internal components may |
@@ -165,7 +162,7 @@ |
base::ObserverList<HostStatusObserver> status_observers_; |
// The connections to remote clients. |
- ClientSessions clients_; |
+ ClientList clients_; |
// True if the host has been started. |
bool started_; |