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

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

Issue 9827006: Refactor VideoStub interface to accept ownership of video packets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
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/client_control_dispatcher.h" 5 #include "remoting/protocol/client_control_dispatcher.h"
6 6
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/message_loop_proxy.h" 9 #include "base/message_loop_proxy.h"
10 #include "net/socket/stream_socket.h" 10 #include "net/socket/stream_socket.h"
(...skipping 25 matching lines...) Expand all
36 } 36 }
37 37
38 void ClientControlDispatcher::InjectClipboardEvent( 38 void ClientControlDispatcher::InjectClipboardEvent(
39 const ClipboardEvent& event) { 39 const ClipboardEvent& event) {
40 ControlMessage message; 40 ControlMessage message;
41 message.mutable_clipboard_event()->CopyFrom(event); 41 message.mutable_clipboard_event()->CopyFrom(event);
42 writer_->Write(SerializeAndFrameMessage(message), base::Closure()); 42 writer_->Write(SerializeAndFrameMessage(message), base::Closure());
43 } 43 }
44 44
45 void ClientControlDispatcher::OnMessageReceived( 45 void ClientControlDispatcher::OnMessageReceived(
46 ControlMessage* message, const base::Closure& done_task) { 46 scoped_ptr<ControlMessage> message, const base::Closure& done_task) {
47 DCHECK(client_stub_); 47 DCHECK(client_stub_);
48 base::ScopedClosureRunner done_runner(done_task); 48 base::ScopedClosureRunner done_runner(done_task);
49 LOG(WARNING) << "Unknown control message received."; 49 LOG(WARNING) << "Unknown control message received.";
50 } 50 }
51 51
52 } // namespace protocol 52 } // namespace protocol
53 } // namespace remoting 53 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/client_control_dispatcher.h ('k') | remoting/protocol/connection_to_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698