| 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/host/chromoting_host.h" | 5 #include "remoting/host/chromoting_host.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/message_loop/message_loop_proxy.h" | 12 #include "base/message_loop/message_loop_proxy.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "jingle/glue/thread_wrapper.h" | 14 #include "jingle/glue/thread_wrapper.h" |
| 15 #include "remoting/base/constants.h" | 15 #include "remoting/base/constants.h" |
| 16 #include "remoting/base/logging.h" | 16 #include "remoting/base/logging.h" |
| 17 #include "remoting/host/chromoting_host_context.h" | 17 #include "remoting/host/chromoting_host_context.h" |
| 18 #include "remoting/host/desktop_environment.h" | 18 #include "remoting/host/desktop_environment.h" |
| 19 #include "remoting/host/host_config.h" | 19 #include "remoting/host/host_config.h" |
| 20 #include "remoting/host/input_injector.h" | 20 #include "remoting/host/input_injector.h" |
| 21 #include "remoting/host/video_frame_recorder.h" |
| 21 #include "remoting/protocol/connection_to_client.h" | 22 #include "remoting/protocol/connection_to_client.h" |
| 22 #include "remoting/protocol/client_stub.h" | 23 #include "remoting/protocol/client_stub.h" |
| 23 #include "remoting/protocol/host_stub.h" | 24 #include "remoting/protocol/host_stub.h" |
| 24 #include "remoting/protocol/input_stub.h" | 25 #include "remoting/protocol/input_stub.h" |
| 25 #include "remoting/protocol/session_config.h" | 26 #include "remoting/protocol/session_config.h" |
| 26 | 27 |
| 27 using remoting::protocol::ConnectionToClient; | 28 using remoting::protocol::ConnectionToClient; |
| 28 using remoting::protocol::InputStub; | 29 using remoting::protocol::InputStub; |
| 29 | 30 |
| 30 namespace remoting { | 31 namespace remoting { |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 DCHECK(CalledOnValidThread()); | 330 DCHECK(CalledOnValidThread()); |
| 330 | 331 |
| 331 while (!clients_.empty()) { | 332 while (!clients_.empty()) { |
| 332 size_t size = clients_.size(); | 333 size_t size = clients_.size(); |
| 333 clients_.front()->DisconnectSession(); | 334 clients_.front()->DisconnectSession(); |
| 334 CHECK_EQ(clients_.size(), size - 1); | 335 CHECK_EQ(clients_.size(), size - 1); |
| 335 } | 336 } |
| 336 } | 337 } |
| 337 | 338 |
| 338 } // namespace remoting | 339 } // namespace remoting |
| OLD | NEW |