| 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..ea17201895b9ba347439467332eba312b7f70374 100644
|
| --- a/remoting/protocol/connection_to_client.cc
|
| +++ b/remoting/protocol/connection_to_client.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -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_->OnClientIpAddress(this, channel_name, end_point);
|
| +}
|
| +
|
| void ConnectionToClient::OnChannelInitialized(bool successful) {
|
| DCHECK(CalledOnValidThread());
|
|
|
|
|