| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "remoting/host/client_session.h" | 5 #include "remoting/host/client_session.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/message_loop_proxy.h" | 9 #include "base/message_loop_proxy.h" |
| 10 #include "remoting/codec/audio_encoder.h" | 10 #include "remoting/codec/audio_encoder.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 void ClientSession::ControlVideo(const protocol::VideoControl& video_control) { | 81 void ClientSession::ControlVideo(const protocol::VideoControl& video_control) { |
| 82 // TODO(wez): Pause/resume video updates, being careful not to let clients | 82 // TODO(wez): Pause/resume video updates, being careful not to let clients |
| 83 // override any host-initiated pause of the video channel. | 83 // override any host-initiated pause of the video channel. |
| 84 if (video_control.has_enable()) { | 84 if (video_control.has_enable()) { |
| 85 VLOG(1) << "Received VideoControl (enable=" | 85 VLOG(1) << "Received VideoControl (enable=" |
| 86 << video_control.enable() << ")"; | 86 << video_control.enable() << ")"; |
| 87 } | 87 } |
| 88 } | 88 } |
| 89 | 89 |
| 90 void ClientSession::ControlAudio(const protocol::AudioControl& audio_control) { |
| 91 if (audio_control.has_enable()) { |
| 92 VLOG(1) << "Received AudioControl (enable=" |
| 93 << audio_control.enable() << ")"; |
| 94 } |
| 95 } |
| 96 |
| 90 void ClientSession::OnConnectionAuthenticated( | 97 void ClientSession::OnConnectionAuthenticated( |
| 91 protocol::ConnectionToClient* connection) { | 98 protocol::ConnectionToClient* connection) { |
| 92 DCHECK(CalledOnValidThread()); | 99 DCHECK(CalledOnValidThread()); |
| 93 DCHECK_EQ(connection_.get(), connection); | 100 DCHECK_EQ(connection_.get(), connection); |
| 94 | 101 |
| 95 auth_input_filter_.set_enabled(true); | 102 auth_input_filter_.set_enabled(true); |
| 96 auth_clipboard_filter_.set_enabled(true); | 103 auth_clipboard_filter_.set_enabled(true); |
| 97 | 104 |
| 98 clipboard_echo_filter_.set_client_stub(connection_->client_stub()); | 105 clipboard_echo_filter_.set_client_stub(connection_->client_stub()); |
| 99 | 106 |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 NOTIMPLEMENTED(); | 305 NOTIMPLEMENTED(); |
| 299 return scoped_ptr<AudioEncoder>(NULL); | 306 return scoped_ptr<AudioEncoder>(NULL); |
| 300 } | 307 } |
| 301 | 308 |
| 302 // static | 309 // static |
| 303 void ClientSessionTraits::Destruct(const ClientSession* client) { | 310 void ClientSessionTraits::Destruct(const ClientSession* client) { |
| 304 client->network_task_runner_->DeleteSoon(FROM_HERE, client); | 311 client->network_task_runner_->DeleteSoon(FROM_HERE, client); |
| 305 } | 312 } |
| 306 | 313 |
| 307 } // namespace remoting | 314 } // namespace remoting |
| OLD | NEW |