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 "base/message_loop/message_loop_proxy.h" | |
9 #include "remoting/base/constants.h" | 8 #include "remoting/base/constants.h" |
10 #include "remoting/host/host_status_monitor.h" | 9 #include "remoting/host/host_status_monitor.h" |
11 #include "remoting/host/server_log_entry_host.h" | 10 #include "remoting/host/server_log_entry_host.h" |
12 #include "remoting/protocol/transport.h" | 11 #include "remoting/protocol/transport.h" |
13 #include "remoting/signaling/server_log_entry.h" | 12 #include "remoting/signaling/server_log_entry.h" |
14 | 13 |
15 namespace remoting { | 14 namespace remoting { |
16 | 15 |
17 HostStatusLogger::HostStatusLogger(base::WeakPtr<HostStatusMonitor> monitor, | 16 HostStatusLogger::HostStatusLogger(base::WeakPtr<HostStatusMonitor> monitor, |
18 ServerLogEntry::Mode mode, | 17 ServerLogEntry::Mode mode, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 if (channel_name == kVideoChannelName) { | 63 if (channel_name == kVideoChannelName) { |
65 connection_route_type_[jid] = route.type; | 64 connection_route_type_[jid] = route.type; |
66 } | 65 } |
67 } | 66 } |
68 | 67 |
69 void HostStatusLogger::SetSignalingStateForTest(SignalStrategy::State state) { | 68 void HostStatusLogger::SetSignalingStateForTest(SignalStrategy::State state) { |
70 log_to_server_.OnSignalStrategyStateChange(state); | 69 log_to_server_.OnSignalStrategyStateChange(state); |
71 } | 70 } |
72 | 71 |
73 } // namespace remoting | 72 } // namespace remoting |
OLD | NEW |