OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "remoting/host/host_status_logger.h" | 5 #include "remoting/host/host_status_logger.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "remoting/base/constants.h" | 8 #include "remoting/base/constants.h" |
9 #include "remoting/host/host_status_monitor.h" | 9 #include "remoting/host/host_status_monitor.h" |
10 #include "remoting/host/server_log_entry_host.h" | 10 #include "remoting/host/server_log_entry_host.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 LogSessionStateChange(jid, false); | 53 LogSessionStateChange(jid, false); |
54 connection_route_type_.erase(jid); | 54 connection_route_type_.erase(jid); |
55 } | 55 } |
56 | 56 |
57 void HostStatusLogger::OnClientRouteChange( | 57 void HostStatusLogger::OnClientRouteChange( |
58 const std::string& jid, | 58 const std::string& jid, |
59 const std::string& channel_name, | 59 const std::string& channel_name, |
60 const protocol::TransportRoute& route) { | 60 const protocol::TransportRoute& route) { |
61 // Store connection type for the video channel. It is logged later | 61 // Store connection type for the video channel. It is logged later |
62 // when client authentication is finished. | 62 // when client authentication is finished. |
63 if (channel_name == kVideoChannelName || channel_name == kQuicChannelName) { | 63 if (channel_name == kVideoChannelName) { |
64 connection_route_type_[jid] = route.type; | 64 connection_route_type_[jid] = route.type; |
65 } | 65 } |
66 } | 66 } |
67 | 67 |
68 void HostStatusLogger::SetSignalingStateForTest(SignalStrategy::State state) { | 68 void HostStatusLogger::SetSignalingStateForTest(SignalStrategy::State state) { |
69 log_to_server_.OnSignalStrategyStateChange(state); | 69 log_to_server_.OnSignalStrategyStateChange(state); |
70 } | 70 } |
71 | 71 |
72 } // namespace remoting | 72 } // namespace remoting |
OLD | NEW |