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/message_loop/message_loop.h" |
12 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
13 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
14 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
15 #include "base/task_scheduler/task_scheduler.h" | 16 #include "base/task_scheduler/task_scheduler.h" |
16 #include "base/threading/thread.h" | 17 #include "base/threading/thread.h" |
17 #include "build/build_config.h" | 18 #include "build/build_config.h" |
18 #include "net/url_request/url_fetcher.h" | 19 #include "net/url_request/url_fetcher.h" |
19 #include "net/url_request/url_request_context_getter.h" | 20 #include "net/url_request/url_request_context_getter.h" |
20 #include "remoting/base/logging.h" | 21 #include "remoting/base/logging.h" |
21 #include "remoting/base/oauth_helper.h" | 22 #include "remoting/base/oauth_helper.h" |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 // IO thread. | 238 // IO thread. |
238 host_starter.reset(); | 239 host_starter.reset(); |
239 url_request_context_getter = nullptr; | 240 url_request_context_getter = nullptr; |
240 | 241 |
241 io_thread.Stop(); | 242 io_thread.Stop(); |
242 | 243 |
243 return g_started ? 0 : 1; | 244 return g_started ? 0 : 1; |
244 } | 245 } |
245 | 246 |
246 } // namespace remoting | 247 } // namespace remoting |
OLD | NEW |