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

Unified Diff: remoting/host/host_status_observer.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/host_event_logger.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_status_observer.h
diff --git a/remoting/host/host_status_observer.h b/remoting/host/host_status_observer.h
index c3c8a0b34c6ad9094f5f73c235d0d3e89d73c2c6..29a7193c9e5052af137995a3331d4894a572a038 100644
--- a/remoting/host/host_status_observer.h
+++ b/remoting/host/host_status_observer.h
@@ -7,6 +7,10 @@
#include <string>
+namespace net {
+class IPEndPoint;
+} // namespace net
+
namespace remoting {
class SignalStrategy;
@@ -26,6 +30,12 @@ class HostStatusObserver {
virtual void OnClientAuthenticated(const std::string& jid) = 0;
virtual void OnClientDisconnected(const std::string& jid) = 0;
+ // Called on notification of a route change event, when a channel is
+ // connected.
+ virtual void OnClientIpAddress(const std::string& jid,
+ const std::string& channel_name,
+ const net::IPEndPoint& end_point) { }
+
// Called when the host shuts down.
virtual void OnShutdown() = 0;
};
« no previous file with comments | « remoting/host/host_event_logger.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698