| 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/protocol/connection_to_client.h" | 5 #include "remoting/protocol/connection_to_client.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/message_loop_proxy.h" | 9 #include "base/message_loop_proxy.h" |
| 10 #include "google/protobuf/message.h" | 10 #include "google/protobuf/message.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 DCHECK(CalledOnValidThread()); | 67 DCHECK(CalledOnValidThread()); |
| 68 return video_writer_.get(); | 68 return video_writer_.get(); |
| 69 } | 69 } |
| 70 | 70 |
| 71 // Return pointer to ClientStub. | 71 // Return pointer to ClientStub. |
| 72 ClientStub* ConnectionToClient::client_stub() { | 72 ClientStub* ConnectionToClient::client_stub() { |
| 73 DCHECK(CalledOnValidThread()); | 73 DCHECK(CalledOnValidThread()); |
| 74 return control_dispatcher_.get(); | 74 return control_dispatcher_.get(); |
| 75 } | 75 } |
| 76 | 76 |
| 77 CursorShapeStub* ConnectionToClient::cursor_shape_stub() { |
| 78 DCHECK(CalledOnValidThread()); |
| 79 return control_dispatcher_.get(); |
| 80 } |
| 81 |
| 77 void ConnectionToClient::set_clipboard_stub( | 82 void ConnectionToClient::set_clipboard_stub( |
| 78 protocol::ClipboardStub* clipboard_stub) { | 83 protocol::ClipboardStub* clipboard_stub) { |
| 79 DCHECK(CalledOnValidThread()); | 84 DCHECK(CalledOnValidThread()); |
| 80 clipboard_stub_ = clipboard_stub; | 85 clipboard_stub_ = clipboard_stub; |
| 81 } | 86 } |
| 82 | 87 |
| 83 void ConnectionToClient::set_host_stub(protocol::HostStub* host_stub) { | 88 void ConnectionToClient::set_host_stub(protocol::HostStub* host_stub) { |
| 84 DCHECK(CalledOnValidThread()); | 89 DCHECK(CalledOnValidThread()); |
| 85 host_stub_ = host_stub; | 90 host_stub_ = host_stub; |
| 86 } | 91 } |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 } | 174 } |
| 170 | 175 |
| 171 void ConnectionToClient::CloseChannels() { | 176 void ConnectionToClient::CloseChannels() { |
| 172 control_dispatcher_.reset(); | 177 control_dispatcher_.reset(); |
| 173 event_dispatcher_.reset(); | 178 event_dispatcher_.reset(); |
| 174 video_writer_.reset(); | 179 video_writer_.reset(); |
| 175 } | 180 } |
| 176 | 181 |
| 177 } // namespace protocol | 182 } // namespace protocol |
| 178 } // namespace remoting | 183 } // namespace remoting |
| OLD | NEW |