Index: remoting/protocol/connection_to_client.cc |
diff --git a/remoting/protocol/connection_to_client.cc b/remoting/protocol/connection_to_client.cc |
index 11101cd1a72144b5f9e95688945f6db85d83cfb2..2e3091be905d05e475f43dced2925baa9e6c88fb 100644 |
--- a/remoting/protocol/connection_to_client.cc |
+++ b/remoting/protocol/connection_to_client.cc |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2011 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. |
@@ -76,6 +76,14 @@ ClientStub* ConnectionToClient::client_stub() { |
return client_stub_.get(); |
} |
+protocol::HostStub* ConnectionToClient::host_stub() { |
+ return host_stub_; |
+} |
+ |
+void ConnectionToClient::set_host_stub(protocol::HostStub* host_stub) { |
+ host_stub_ = host_stub; |
+} |
+ |
void ConnectionToClient::OnSessionStateChange(protocol::Session::State state) { |
if (state == protocol::Session::CONNECTED) { |
client_stub_.reset(new ClientControlSender(session_->control_channel())); |
@@ -145,5 +153,9 @@ void ConnectionToClient::OnClientAuthenticated() { |
client_stub_->OnAuthenticated(); |
} |
+bool ConnectionToClient::client_authenticated() { |
+ return client_authenticated_; |
+} |
+ |
} // namespace protocol |
} // namespace remoting |