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" | |
13 #include "build/build_config.h" | 12 #include "build/build_config.h" |
14 #include "jingle/glue/thread_wrapper.h" | 13 #include "jingle/glue/thread_wrapper.h" |
15 #include "remoting/base/constants.h" | 14 #include "remoting/base/constants.h" |
16 #include "remoting/base/logging.h" | 15 #include "remoting/base/logging.h" |
17 #include "remoting/host/chromoting_host_context.h" | 16 #include "remoting/host/chromoting_host_context.h" |
18 #include "remoting/host/desktop_environment.h" | 17 #include "remoting/host/desktop_environment.h" |
19 #include "remoting/host/host_config.h" | 18 #include "remoting/host/host_config.h" |
20 #include "remoting/host/input_injector.h" | 19 #include "remoting/host/input_injector.h" |
21 #include "remoting/host/video_frame_recorder.h" | 20 #include "remoting/host/video_frame_recorder.h" |
22 #include "remoting/protocol/connection_to_client.h" | 21 #include "remoting/protocol/connection_to_client.h" |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 DCHECK(CalledOnValidThread()); | 332 DCHECK(CalledOnValidThread()); |
334 | 333 |
335 while (!clients_.empty()) { | 334 while (!clients_.empty()) { |
336 size_t size = clients_.size(); | 335 size_t size = clients_.size(); |
337 clients_.front()->DisconnectSession(); | 336 clients_.front()->DisconnectSession(); |
338 CHECK_EQ(clients_.size(), size - 1); | 337 CHECK_EQ(clients_.size(), size - 1); |
339 } | 338 } |
340 } | 339 } |
341 | 340 |
342 } // namespace remoting | 341 } // namespace remoting |
OLD | NEW |