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

Unified Diff: remoting/host/client_session.h

Issue 9288010: More plumbing for logging connection IP addresses (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/client_session.h
diff --git a/remoting/host/client_session.h b/remoting/host/client_session.h
index 9dd8ff0ff305be2a8601ca9c8c9483ba18cbcf58..96905134b5fbf04d7620f5b1333db1db11be136a 100644
--- a/remoting/host/client_session.h
+++ b/remoting/host/client_session.h
@@ -7,6 +7,7 @@
#include <list>
#include <set>
+#include <string>
#include "base/time.h"
#include "base/threading/non_thread_safe.h"
@@ -15,6 +16,10 @@
#include "remoting/protocol/input_stub.h"
#include "third_party/skia/include/core/SkPoint.h"
+namespace net {
+class IpEndPoint;
+} // namespace net
+
namespace remoting {
class Capturer;
@@ -46,6 +51,12 @@ class ClientSession : public protocol::HostStub,
// callback must not tear down this object.
virtual void OnSessionSequenceNumber(ClientSession* client,
int64 sequence_number) = 0;
+
+ // Called on notification of a route change event, when a channel is
+ // connected.
+ virtual void OnSessionIpEndPoint(ClientSession* client,
Sergey Ulanov 2012/01/25 01:56:48 OnSessionIpAddress?
Lambros 2012/01/25 19:27:10 Done.
+ const std::string& channel_name,
+ const net::IPEndPoint& end_point) = 0;
};
// Takes ownership of |connection|. Does not take ownership of
@@ -69,6 +80,9 @@ class ClientSession : public protocol::HostStub,
protocol::Session::Error error) OVERRIDE;
virtual void OnSequenceNumberUpdated(
protocol::ConnectionToClient* connection, int64 sequence_number) OVERRIDE;
+ virtual void OnClientIpEndPoint(protocol::ConnectionToClient* connection,
+ const std::string& channel_name,
+ const net::IPEndPoint& end_point) OVERRIDE;
// Disconnects the session and destroys the transport. Event handler
// is guaranteed not to be called after this method is called. Can

Powered by Google App Engine
This is Rietveld 408576698