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

Side by Side Diff: remoting/protocol/host_control_dispatcher.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/protocol/client_control_dispatcher.cc ('k') | remoting/protocol/host_stub.h » ('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/protocol/host_control_dispatcher.h" 5 #include "remoting/protocol/host_control_dispatcher.h"
6 6
7 #include "base/message_loop_proxy.h" 7 #include "base/message_loop_proxy.h"
8 #include "net/socket/stream_socket.h" 8 #include "net/socket/stream_socket.h"
9 #include "remoting/base/constants.h" 9 #include "remoting/base/constants.h"
10 #include "remoting/proto/control.pb.h" 10 #include "remoting/proto/control.pb.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 DCHECK(host_stub_); 51 DCHECK(host_stub_);
52 52
53 base::ScopedClosureRunner done_runner(done_task); 53 base::ScopedClosureRunner done_runner(done_task);
54 54
55 if (message->has_clipboard_event()) { 55 if (message->has_clipboard_event()) {
56 clipboard_stub_->InjectClipboardEvent(message->clipboard_event()); 56 clipboard_stub_->InjectClipboardEvent(message->clipboard_event());
57 } else if (message->has_client_dimensions()) { 57 } else if (message->has_client_dimensions()) {
58 host_stub_->NotifyClientDimensions(message->client_dimensions()); 58 host_stub_->NotifyClientDimensions(message->client_dimensions());
59 } else if (message->has_video_control()) { 59 } else if (message->has_video_control()) {
60 host_stub_->ControlVideo(message->video_control()); 60 host_stub_->ControlVideo(message->video_control());
61 } else if (message->has_audio_control()) {
62 host_stub_->ControlAudio(message->audio_control());
61 } else { 63 } else {
62 LOG(WARNING) << "Unknown control message received."; 64 LOG(WARNING) << "Unknown control message received.";
63 } 65 }
64 } 66 }
65 67
66 } // namespace protocol 68 } // namespace protocol
67 } // namespace remoting 69 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/client_control_dispatcher.cc ('k') | remoting/protocol/host_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698