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.h" | 5 #include "remoting/host/setup/me2me_native_messaging_host.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/bind.h" | 12 #include "base/bind.h" |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/json/json_reader.h" | 15 #include "base/json/json_reader.h" |
16 #include "base/json/json_writer.h" | 16 #include "base/json/json_writer.h" |
17 #include "base/logging.h" | 17 #include "base/logging.h" |
18 #include "base/macros.h" | 18 #include "base/macros.h" |
19 #include "base/single_thread_task_runner.h" | 19 #include "base/single_thread_task_runner.h" |
20 #include "base/strings/stringize_macros.h" | 20 #include "base/strings/stringize_macros.h" |
21 #include "base/time/time.h" | 21 #include "base/time/time.h" |
22 #include "base/values.h" | 22 #include "base/values.h" |
23 #include "build/build_config.h" | 23 #include "build/build_config.h" |
24 #include "google_apis/gaia/gaia_oauth_client.h" | 24 #include "google_apis/gaia/gaia_oauth_client.h" |
25 #include "google_apis/google_api_keys.h" | 25 #include "google_apis/google_api_keys.h" |
26 #include "net/base/network_interfaces.h" | 26 #include "net/base/network_interfaces.h" |
27 #include "remoting/base/auto_thread_task_runner.h" | 27 #include "remoting/base/auto_thread_task_runner.h" |
| 28 #include "remoting/base/oauth_client.h" |
28 #include "remoting/base/rsa_key_pair.h" | 29 #include "remoting/base/rsa_key_pair.h" |
29 #include "remoting/host/chromoting_host_context.h" | 30 #include "remoting/host/chromoting_host_context.h" |
30 #include "remoting/host/native_messaging/log_message_handler.h" | 31 #include "remoting/host/native_messaging/log_message_handler.h" |
31 #include "remoting/host/pin_hash.h" | 32 #include "remoting/host/pin_hash.h" |
32 #include "remoting/host/setup/oauth_client.h" | |
33 #include "remoting/protocol/pairing_registry.h" | 33 #include "remoting/protocol/pairing_registry.h" |
34 | 34 |
35 #if defined(OS_WIN) | 35 #if defined(OS_WIN) |
36 #include "remoting/host/win/elevated_native_messaging_host.h" | 36 #include "remoting/host/win/elevated_native_messaging_host.h" |
37 #endif // defined(OS_WIN) | 37 #endif // defined(OS_WIN) |
38 | 38 |
39 namespace { | 39 namespace { |
40 | 40 |
41 #if defined(OS_WIN) | 41 #if defined(OS_WIN) |
42 const int kElevatedHostTimeoutSeconds = 300; | 42 const int kElevatedHostTimeoutSeconds = 300; |
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 | 570 |
571 bool Me2MeNativeMessagingHost::DelegateToElevatedHost( | 571 bool Me2MeNativeMessagingHost::DelegateToElevatedHost( |
572 std::unique_ptr<base::DictionaryValue> message) { | 572 std::unique_ptr<base::DictionaryValue> message) { |
573 NOTREACHED(); | 573 NOTREACHED(); |
574 return false; | 574 return false; |
575 } | 575 } |
576 | 576 |
577 #endif // !defined(OS_WIN) | 577 #endif // !defined(OS_WIN) |
578 | 578 |
579 } // namespace remoting | 579 } // namespace remoting |
OLD | NEW |