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

Unified Diff: remoting/protocol/connection_to_client.cc

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/protocol/connection_to_client.cc
diff --git a/remoting/protocol/connection_to_client.cc b/remoting/protocol/connection_to_client.cc
index de5b401ee5d96803e61cbbb0a2ed690faff18363..8d7c2788a1a95e51577c86b52fa1ef188f8be100 100644
--- a/remoting/protocol/connection_to_client.cc
+++ b/remoting/protocol/connection_to_client.cc
@@ -25,6 +25,9 @@ ConnectionToClient::ConnectionToClient(protocol::Session* session)
session_->SetStateChangeCallback(
base::Bind(&ConnectionToClient::OnSessionStateChange,
base::Unretained(this)));
+ session_->SetRouteChangeCallback(
+ base::Bind(&ConnectionToClient::OnSessionRouteChange,
+ base::Unretained(this)));
}
ConnectionToClient::~ConnectionToClient() {
@@ -131,6 +134,11 @@ void ConnectionToClient::OnSessionStateChange(Session::State state) {
}
}
+void ConnectionToClient::OnSessionRouteChange(
+ const std::string& channel_name, const net::IPEndPoint& end_point) {
+ handler_->OnClientIpEndPoint(this, channel_name, end_point);
+}
+
void ConnectionToClient::OnChannelInitialized(bool successful) {
DCHECK(CalledOnValidThread());

Powered by Google App Engine
This is Rietveld 408576698