OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/me2me_native_messaging_host_main.h" | 5 #include "remoting/host/setup/me2me_native_messaging_host_main.h" |
6 | 6 |
7 #include <cstdint> | 7 #include <cstdint> |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/at_exit.h" | 12 #include "base/at_exit.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/files/file.h" | 14 #include "base/files/file.h" |
15 #include "base/i18n/icu_util.h" | 15 #include "base/i18n/icu_util.h" |
16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
17 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
18 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
19 #include "base/task_scheduler/task_scheduler.h" | 19 #include "base/task_scheduler/task_scheduler.h" |
20 #include "base/threading/thread.h" | 20 #include "base/threading/thread.h" |
21 #include "build/build_config.h" | 21 #include "build/build_config.h" |
22 #include "net/url_request/url_fetcher.h" | 22 #include "net/url_request/url_fetcher.h" |
23 #include "remoting/base/auto_thread_task_runner.h" | 23 #include "remoting/base/auto_thread_task_runner.h" |
24 #include "remoting/base/breakpad.h" | 24 #include "remoting/base/breakpad.h" |
| 25 #include "remoting/base/gaia_oauth_client.h" |
25 #include "remoting/base/url_request_context_getter.h" | 26 #include "remoting/base/url_request_context_getter.h" |
26 #include "remoting/host/chromoting_host_context.h" | 27 #include "remoting/host/chromoting_host_context.h" |
27 #include "remoting/host/host_exit_codes.h" | 28 #include "remoting/host/host_exit_codes.h" |
28 #include "remoting/host/logging.h" | 29 #include "remoting/host/logging.h" |
29 #include "remoting/host/native_messaging/native_messaging_pipe.h" | 30 #include "remoting/host/native_messaging/native_messaging_pipe.h" |
30 #include "remoting/host/native_messaging/pipe_messaging_channel.h" | 31 #include "remoting/host/native_messaging/pipe_messaging_channel.h" |
31 #include "remoting/host/pairing_registry_delegate.h" | 32 #include "remoting/host/pairing_registry_delegate.h" |
32 #include "remoting/host/setup/gaia_oauth_client.h" | |
33 #include "remoting/host/setup/me2me_native_messaging_host.h" | 33 #include "remoting/host/setup/me2me_native_messaging_host.h" |
34 #include "remoting/host/switches.h" | 34 #include "remoting/host/switches.h" |
35 #include "remoting/host/usage_stats_consent.h" | 35 #include "remoting/host/usage_stats_consent.h" |
36 | 36 |
37 #if defined(OS_MACOSX) | 37 #if defined(OS_MACOSX) |
38 #include "base/mac/scoped_nsautorelease_pool.h" | 38 #include "base/mac/scoped_nsautorelease_pool.h" |
39 #endif // defined(OS_MACOSX) | 39 #endif // defined(OS_MACOSX) |
40 | 40 |
41 #if defined(OS_WIN) | 41 #if defined(OS_WIN) |
42 #include "base/win/registry.h" | 42 #include "base/win/registry.h" |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 host->Start(native_messaging_pipe.get()); | 266 host->Start(native_messaging_pipe.get()); |
267 | 267 |
268 native_messaging_pipe->Start(std::move(host), std::move(channel)); | 268 native_messaging_pipe->Start(std::move(host), std::move(channel)); |
269 | 269 |
270 // Run the loop until channel is alive. | 270 // Run the loop until channel is alive. |
271 run_loop.Run(); | 271 run_loop.Run(); |
272 return kSuccessExitCode; | 272 return kSuccessExitCode; |
273 } | 273 } |
274 | 274 |
275 } // namespace remoting | 275 } // namespace remoting |
OLD | NEW |