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

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

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/client_session.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, 31 virtual void OnClientRouteChange(
32 const std::string& channel_name, 32 const std::string& jid,
33 const net::IPEndPoint& end_point) OVERRIDE; 33 const std::string& channel_name,
34 const net::IPEndPoint& remote_end_point,
35 const net::IPEndPoint& local_end_point) OVERRIDE;
34 virtual void OnShutdown() OVERRIDE; 36 virtual void OnShutdown() OVERRIDE;
35 37
36 private: 38 private:
37 void Log(const std::string& message); 39 void Log(const std::string& message);
38 40
39 scoped_refptr<ChromotingHost> host_; 41 scoped_refptr<ChromotingHost> host_;
40 scoped_ptr<SystemEventLogger> system_event_logger_; 42 scoped_ptr<SystemEventLogger> system_event_logger_;
41 43
42 DISALLOW_COPY_AND_ASSIGN(HostEventLogger); 44 DISALLOW_COPY_AND_ASSIGN(HostEventLogger);
43 }; 45 };
44 46
45 } 47 }
46 48
47 #endif // REMOTING_HOST_HOST_EVENT_LOGGER_H_ 49 #endif // REMOTING_HOST_HOST_EVENT_LOGGER_H_
OLDNEW
« no previous file with comments | « remoting/host/client_session.cc ('k') | remoting/host/host_event_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698