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

Side by Side Diff: remoting/protocol/host_control_dispatcher.cc

Issue 10223019: Add ClientDimensions message to control channel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing HostMockStub method. Created 8 years, 8 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 | Annotate | Revision Log
« 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 void HostControlDispatcher::OnMessageReceived( 43 void HostControlDispatcher::OnMessageReceived(
44 scoped_ptr<ControlMessage> message, const base::Closure& done_task) { 44 scoped_ptr<ControlMessage> message, const base::Closure& done_task) {
45 DCHECK(clipboard_stub_); 45 DCHECK(clipboard_stub_);
46 DCHECK(host_stub_); 46 DCHECK(host_stub_);
47 47
48 base::ScopedClosureRunner done_runner(done_task); 48 base::ScopedClosureRunner done_runner(done_task);
49 49
50 if (message->has_clipboard_event()) { 50 if (message->has_clipboard_event()) {
51 clipboard_stub_->InjectClipboardEvent(message->clipboard_event()); 51 clipboard_stub_->InjectClipboardEvent(message->clipboard_event());
52 } else if (message->has_client_dimensions()) {
53 host_stub_->NotifyClientDimensions(message->client_dimensions());
52 } else { 54 } else {
53 LOG(WARNING) << "Unknown control message received."; 55 LOG(WARNING) << "Unknown control message received.";
54 } 56 }
55 } 57 }
56 58
57 } // namespace protocol 59 } // namespace protocol
58 } // namespace remoting 60 } // 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