OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/message_loop_proxy.h" | 9 #include "base/message_loop_proxy.h" |
9 #include "google/protobuf/message.h" | 10 #include "google/protobuf/message.h" |
10 #include "net/base/io_buffer.h" | 11 #include "net/base/io_buffer.h" |
11 #include "remoting/protocol/client_control_sender.h" | 12 #include "remoting/protocol/client_control_sender.h" |
12 #include "remoting/protocol/host_message_dispatcher.h" | 13 #include "remoting/protocol/host_message_dispatcher.h" |
13 #include "remoting/protocol/host_stub.h" | 14 #include "remoting/protocol/host_stub.h" |
14 #include "remoting/protocol/input_stub.h" | 15 #include "remoting/protocol/input_stub.h" |
15 | 16 |
16 // TODO(hclam): Remove this header once MessageDispatcher is used. | 17 // TODO(hclam): Remove this header once MessageDispatcher is used. |
17 #include "remoting/base/compound_buffer.h" | 18 #include "remoting/base/compound_buffer.h" |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 156 |
156 void ConnectionToClient::CloseChannels() { | 157 void ConnectionToClient::CloseChannels() { |
157 if (video_writer_.get()) | 158 if (video_writer_.get()) |
158 video_writer_->Close(); | 159 video_writer_->Close(); |
159 if (client_control_sender_.get()) | 160 if (client_control_sender_.get()) |
160 client_control_sender_->Close(); | 161 client_control_sender_->Close(); |
161 } | 162 } |
162 | 163 |
163 } // namespace protocol | 164 } // namespace protocol |
164 } // namespace remoting | 165 } // namespace remoting |
OLD | NEW |