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

Side by Side Diff: remoting/host/client_session.cc

Issue 11192042: Protocol plumbing for audio toggle. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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 unified diff | Download patch
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/proto/control.proto » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/proto/control.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698