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

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: 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
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..8934c8037c2dc21fab534aa33082addaa38fe876 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) = 0;
Sergey Ulanov 2012/01/26 00:48:56 It may be better to provide default empty handler
Lambros 2012/01/26 19:40:14 Done.
+
// Called when the host shuts down.
virtual void OnShutdown() = 0;
};

Powered by Google App Engine
This is Rietveld 408576698