| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_event_logger.h" | 5 #include "remoting/host/host_event_logger.h" |
| 6 | 6 |
| 7 #include "net/base/ip_endpoint.h" | 7 #include "net/base/ip_endpoint.h" |
| 8 #include "remoting/host/chromoting_host.h" | 8 #include "remoting/host/chromoting_host.h" |
| 9 #include "remoting/host/system_event_logger.h" | 9 #include "remoting/host/system_event_logger.h" |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 } | 26 } |
| 27 | 27 |
| 28 void HostEventLogger::OnClientDisconnected(const std::string& jid) { | 28 void HostEventLogger::OnClientDisconnected(const std::string& jid) { |
| 29 Log("Client disconnected: " + jid); | 29 Log("Client disconnected: " + jid); |
| 30 } | 30 } |
| 31 | 31 |
| 32 void HostEventLogger::OnAccessDenied(const std::string& jid) { | 32 void HostEventLogger::OnAccessDenied(const std::string& jid) { |
| 33 Log("Access denied for client: " + jid); | 33 Log("Access denied for client: " + jid); |
| 34 } | 34 } |
| 35 | 35 |
| 36 void HostEventLogger::OnClientIpAddress(const std::string& jid, | 36 void HostEventLogger::OnClientRouteChange( |
| 37 const std::string& channel_name, | 37 const std::string& jid, |
| 38 const net::IPEndPoint& end_point) { | 38 const std::string& channel_name, |
| 39 Log("Channel IP for client: " + jid + " ip='" + end_point.ToString() + | 39 const net::IPEndPoint& remote_end_point, |
| 40 const net::IPEndPoint& local_end_point) { |
| 41 Log("Channel IP for client: " + jid + |
| 42 " ip='" + remote_end_point.ToString() + |
| 43 "' host_ip='" + local_end_point.ToString() + |
| 40 "' channel='" + channel_name + "'"); | 44 "' channel='" + channel_name + "'"); |
| 41 } | 45 } |
| 42 | 46 |
| 43 void HostEventLogger::OnShutdown() { | 47 void HostEventLogger::OnShutdown() { |
| 44 } | 48 } |
| 45 | 49 |
| 46 void HostEventLogger::Log(const std::string& message) { | 50 void HostEventLogger::Log(const std::string& message) { |
| 47 system_event_logger_->Log(message); | 51 system_event_logger_->Log(message); |
| 48 } | 52 } |
| 49 | 53 |
| 50 } // namespace remoting | 54 } // namespace remoting |
| OLD | NEW |