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_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/event_executor.h" | |
18 #include "remoting/host/host_config.h" | 17 #include "remoting/host/host_config.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" |
23 #include "remoting/protocol/session_config.h" | 23 #include "remoting/protocol/session_config.h" |
24 | 24 |
25 using remoting::protocol::ConnectionToClient; | 25 using remoting::protocol::ConnectionToClient; |
26 using remoting::protocol::InputStub; | 26 using remoting::protocol::InputStub; |
27 | 27 |
28 namespace remoting { | 28 namespace remoting { |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 for (std::vector<base::Closure>::iterator it = shutdown_tasks_.begin(); | 395 for (std::vector<base::Closure>::iterator it = shutdown_tasks_.begin(); |
396 it != shutdown_tasks_.end(); ++it) { | 396 it != shutdown_tasks_.end(); ++it) { |
397 it->Run(); | 397 it->Run(); |
398 } | 398 } |
399 shutdown_tasks_.clear(); | 399 shutdown_tasks_.clear(); |
400 | 400 |
401 weak_factory_.InvalidateWeakPtrs(); | 401 weak_factory_.InvalidateWeakPtrs(); |
402 } | 402 } |
403 | 403 |
404 } // namespace remoting | 404 } // namespace remoting |
OLD | NEW |