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

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

Issue 9288040: Log client IP addresses to syslog in Me2Me host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Log full JID instead of just the username 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/chromoting_host.cc ('k') | remoting/host/host_event_logger.cc » ('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 #ifndef REMOTING_HOST_HOST_EVENT_LOGGER_H_ 5 #ifndef REMOTING_HOST_HOST_EVENT_LOGGER_H_
6 #define REMOTING_HOST_HOST_EVENT_LOGGER_H_ 6 #define REMOTING_HOST_HOST_EVENT_LOGGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 10 matching lines...) Expand all
21 class HostEventLogger : public HostStatusObserver { 21 class HostEventLogger : public HostStatusObserver {
22 public: 22 public:
23 HostEventLogger(ChromotingHost* host, const std::string& application_name); 23 HostEventLogger(ChromotingHost* host, const std::string& application_name);
24 virtual ~HostEventLogger(); 24 virtual ~HostEventLogger();
25 25
26 // HostStatusObserver implementation. These methods will be called from the 26 // HostStatusObserver implementation. These methods will be called from the
27 // network thread. 27 // network thread.
28 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; 28 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE;
29 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; 29 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE;
30 virtual void OnAccessDenied(const std::string& jid) OVERRIDE; 30 virtual void OnAccessDenied(const std::string& jid) OVERRIDE;
31 virtual void OnClientIpAddress(const std::string& jid,
32 const std::string& channel_name,
33 const net::IPEndPoint& end_point) OVERRIDE;
31 virtual void OnShutdown() OVERRIDE; 34 virtual void OnShutdown() OVERRIDE;
32 35
33 private: 36 private:
34 void Log(const std::string& message); 37 void Log(const std::string& message);
35 38
36 scoped_refptr<ChromotingHost> host_; 39 scoped_refptr<ChromotingHost> host_;
37 scoped_ptr<SystemEventLogger> system_event_logger_; 40 scoped_ptr<SystemEventLogger> system_event_logger_;
38 41
39 DISALLOW_COPY_AND_ASSIGN(HostEventLogger); 42 DISALLOW_COPY_AND_ASSIGN(HostEventLogger);
40 }; 43 };
41 44
42 } 45 }
43 46
44 #endif // REMOTING_HOST_HOST_EVENT_LOGGER_H_ 47 #endif // REMOTING_HOST_HOST_EVENT_LOGGER_H_
OLDNEW
« no previous file with comments | « remoting/host/chromoting_host.cc ('k') | remoting/host/host_event_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698