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/setup/start_host_main.h" | 5 #include "remoting/host/setup/start_host_main.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 | 9 |
10 #include "base/at_exit.h" | 10 #include "base/at_exit.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
15 #include "base/task_scheduler/task_scheduler.h" | 15 #include "base/task_scheduler/task_scheduler.h" |
16 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" |
17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
18 #include "net/url_request/url_fetcher.h" | 18 #include "net/url_request/url_fetcher.h" |
19 #include "net/url_request/url_request_context_getter.h" | 19 #include "net/url_request/url_request_context_getter.h" |
20 #include "remoting/base/logging.h" | 20 #include "remoting/base/logging.h" |
21 #include "remoting/base/oauth_helper.h" | 21 #include "remoting/base/oauth_helper.h" |
| 22 #include "remoting/base/service_urls.h" |
22 #include "remoting/base/url_request_context_getter.h" | 23 #include "remoting/base/url_request_context_getter.h" |
23 #include "remoting/host/service_urls.h" | |
24 #include "remoting/host/setup/host_starter.h" | 24 #include "remoting/host/setup/host_starter.h" |
25 #include "remoting/host/setup/pin_validator.h" | 25 #include "remoting/host/setup/pin_validator.h" |
26 | 26 |
27 #if defined(OS_POSIX) | 27 #if defined(OS_POSIX) |
28 #include <termios.h> | 28 #include <termios.h> |
29 #include <unistd.h> | 29 #include <unistd.h> |
30 #endif // defined(OS_POSIX) | 30 #endif // defined(OS_POSIX) |
31 | 31 |
32 #if defined(OS_WIN) | 32 #if defined(OS_WIN) |
33 #include "remoting/host/win/elevation_helpers.h" | 33 #include "remoting/host/win/elevation_helpers.h" |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 // IO thread. | 237 // IO thread. |
238 host_starter.reset(); | 238 host_starter.reset(); |
239 url_request_context_getter = nullptr; | 239 url_request_context_getter = nullptr; |
240 | 240 |
241 io_thread.Stop(); | 241 io_thread.Stop(); |
242 | 242 |
243 return g_started ? 0 : 1; | 243 return g_started ? 0 : 1; |
244 } | 244 } |
245 | 245 |
246 } // namespace remoting | 246 } // namespace remoting |
OLD | NEW |