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/logging.h" | 11 #include "base/logging.h" |
12 #include "base/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 "remoting/base/constants.h" | 14 #include "remoting/base/constants.h" |
15 #include "remoting/host/chromoting_host_context.h" | 15 #include "remoting/host/chromoting_host_context.h" |
16 #include "remoting/host/desktop_environment.h" | 16 #include "remoting/host/desktop_environment.h" |
17 #include "remoting/host/host_config.h" | 17 #include "remoting/host/host_config.h" |
18 #include "remoting/host/input_injector.h" | 18 #include "remoting/host/input_injector.h" |
19 #include "remoting/protocol/connection_to_client.h" | 19 #include "remoting/protocol/connection_to_client.h" |
20 #include "remoting/protocol/client_stub.h" | 20 #include "remoting/protocol/client_stub.h" |
21 #include "remoting/protocol/host_stub.h" | 21 #include "remoting/protocol/host_stub.h" |
22 #include "remoting/protocol/input_stub.h" | 22 #include "remoting/protocol/input_stub.h" |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 DCHECK(CalledOnValidThread()); | 315 DCHECK(CalledOnValidThread()); |
316 | 316 |
317 while (!clients_.empty()) { | 317 while (!clients_.empty()) { |
318 size_t size = clients_.size(); | 318 size_t size = clients_.size(); |
319 clients_.front()->DisconnectSession(); | 319 clients_.front()->DisconnectSession(); |
320 CHECK_EQ(clients_.size(), size - 1); | 320 CHECK_EQ(clients_.size(), size - 1); |
321 } | 321 } |
322 } | 322 } |
323 | 323 |
324 } // namespace remoting | 324 } // namespace remoting |
OLD | NEW |