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

Unified Diff: remoting/host/log_to_server.h

Issue 10413035: [Chromoting] LogToServer correctly handles multiple simultaneous connections. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove the ConnectionInfo class. Created 8 years, 7 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
« no previous file with comments | « no previous file | remoting/host/log_to_server.cc » ('j') | remoting/host/log_to_server_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/log_to_server.h
diff --git a/remoting/host/log_to_server.h b/remoting/host/log_to_server.h
index f17b3af86bc9c1fa8bb2bbd47e6fa0aead232654..ed9552bb0e54ff21e4f8297f0506e6343a3a9652 100644
--- a/remoting/host/log_to_server.h
+++ b/remoting/host/log_to_server.h
@@ -6,6 +6,8 @@
#define REMOTING_HOST_LOG_TO_SERVER_H_
#include <deque>
+#include <map>
+#include <string>
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
@@ -42,7 +44,7 @@ class LogToServer : public base::NonThreadSafe,
// Logs a session state change. Currently, this is either
// connection or disconnection.
- void LogSessionStateChange(bool connected);
+ void LogSessionStateChange(const std::string& jid, bool connected);
// SignalStrategy::Listener interface.
virtual void OnSignalStrategyStateChange(
@@ -66,8 +68,10 @@ class LogToServer : public base::NonThreadSafe,
ServerLogEntry::Mode mode_;
SignalStrategy* signal_strategy_;
scoped_ptr<IqSender> iq_sender_;
- protocol::TransportRoute::RouteType connection_type_;
- bool connection_type_set_;
+ // A map from client JID to the route type of that client's connection to
+ // this host.
+ std::map<std::string, protocol::TransportRoute::RouteType>
+ connection_route_type_;
std::deque<ServerLogEntry> pending_entries_;
DISALLOW_COPY_AND_ASSIGN(LogToServer);
« no previous file with comments | « no previous file | remoting/host/log_to_server.cc » ('j') | remoting/host/log_to_server_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698