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

Side by Side Diff: remoting/host/host_event_logger.cc

Issue 9316052: Log IP/port of host as well as client in Me2Me host (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/IpAddress/RouteChange s/end_point/remote_end_point and other nits Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/host_event_logger.h ('k') | remoting/host/host_mock_objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « remoting/host/host_event_logger.h ('k') | remoting/host/host_mock_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698