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

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

Issue 9243017: Log client jid for rejected clients. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 years, 11 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_status_observer.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 #if defined(OS_LINUX) 7 #if defined(OS_LINUX)
8 #include <syslog.h> 8 #include <syslog.h>
9 // Following defines from syslog.h conflict with constants in 9 // Following defines from syslog.h conflict with constants in
10 // base/logging.h. 10 // base/logging.h.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 void HostEventLogger::OnClientAuthenticated(const std::string& jid) { 42 void HostEventLogger::OnClientAuthenticated(const std::string& jid) {
43 std::string username = jid.substr(0, jid.find('/')); 43 std::string username = jid.substr(0, jid.find('/'));
44 Log("Client connected: " + username); 44 Log("Client connected: " + username);
45 } 45 }
46 46
47 void HostEventLogger::OnClientDisconnected(const std::string& jid) { 47 void HostEventLogger::OnClientDisconnected(const std::string& jid) {
48 std::string username = jid.substr(0, jid.find('/')); 48 std::string username = jid.substr(0, jid.find('/'));
49 Log("Client disconnected: " + username); 49 Log("Client disconnected: " + username);
50 } 50 }
51 51
52 void HostEventLogger::OnAccessDenied() { 52 void HostEventLogger::OnAccessDenied(const std::string& jid) {
53 Log("Access denied"); 53 Log("Access denied for client: " + jid);
54 } 54 }
55 55
56 void HostEventLogger::OnShutdown() { 56 void HostEventLogger::OnShutdown() {
57 } 57 }
58 58
59 } // namespace remoting 59 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/host_event_logger.h ('k') | remoting/host/host_status_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698