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()); |