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