| 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/threading/thread.h" | 15 #include "base/threading/thread.h" |
| 16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 17 #include "net/url_request/url_fetcher.h" | 17 #include "net/url_request/url_fetcher.h" |
| 18 #include "net/url_request/url_request_context_getter.h" | 18 #include "net/url_request/url_request_context_getter.h" |
| 19 #include "remoting/base/logging.h" | 19 #include "remoting/base/logging.h" |
| 20 #include "remoting/base/oauth_helper.h" |
| 20 #include "remoting/base/url_request_context_getter.h" | 21 #include "remoting/base/url_request_context_getter.h" |
| 21 #include "remoting/host/service_urls.h" | 22 #include "remoting/host/service_urls.h" |
| 22 #include "remoting/host/setup/host_starter.h" | 23 #include "remoting/host/setup/host_starter.h" |
| 23 #include "remoting/host/setup/oauth_helper.h" | |
| 24 #include "remoting/host/setup/pin_validator.h" | 24 #include "remoting/host/setup/pin_validator.h" |
| 25 | 25 |
| 26 #if defined(OS_POSIX) | 26 #if defined(OS_POSIX) |
| 27 #include <termios.h> | 27 #include <termios.h> |
| 28 #include <unistd.h> | 28 #include <unistd.h> |
| 29 #endif // defined(OS_POSIX) | 29 #endif // defined(OS_POSIX) |
| 30 | 30 |
| 31 #if defined(OS_WIN) | 31 #if defined(OS_WIN) |
| 32 #include "remoting/host/win/elevation_helpers.h" | 32 #include "remoting/host/win/elevation_helpers.h" |
| 33 #endif // defined(OS_WIN) | 33 #endif // defined(OS_WIN) |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 // IO thread. | 234 // IO thread. |
| 235 host_starter.reset(); | 235 host_starter.reset(); |
| 236 url_request_context_getter = nullptr; | 236 url_request_context_getter = nullptr; |
| 237 | 237 |
| 238 io_thread.Stop(); | 238 io_thread.Stop(); |
| 239 | 239 |
| 240 return g_started ? 0 : 1; | 240 return g_started ? 0 : 1; |
| 241 } | 241 } |
| 242 | 242 |
| 243 } // namespace remoting | 243 } // namespace remoting |
| OLD | NEW |