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/it2me/it2me_native_messaging_host.h" | 5 #include "remoting/host/it2me/it2me_native_messaging_host.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/callback_helpers.h" | 13 #include "base/callback_helpers.h" |
14 #include "base/json/json_reader.h" | 14 #include "base/json/json_reader.h" |
15 #include "base/json/json_writer.h" | 15 #include "base/json/json_writer.h" |
16 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
17 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
18 #include "base/strings/stringize_macros.h" | 18 #include "base/strings/stringize_macros.h" |
19 #include "base/threading/thread.h" | 19 #include "base/threading/thread.h" |
20 #include "base/time/time.h" | 20 #include "base/time/time.h" |
21 #include "base/values.h" | 21 #include "base/values.h" |
22 #include "build/build_config.h" | 22 #include "build/build_config.h" |
23 #include "components/policy/policy_constants.h" | 23 #include "components/policy/policy_constants.h" |
24 #include "net/base/url_util.h" | 24 #include "net/base/url_util.h" |
25 #include "net/socket/client_socket_factory.h" | 25 #include "net/socket/client_socket_factory.h" |
26 #include "net/url_request/url_request_context_getter.h" | 26 #include "net/url_request/url_request_context_getter.h" |
27 #include "remoting/base/auto_thread_task_runner.h" | 27 #include "remoting/base/auto_thread_task_runner.h" |
| 28 #include "remoting/base/name_value_map.h" |
28 #include "remoting/base/service_urls.h" | 29 #include "remoting/base/service_urls.h" |
29 #include "remoting/host/chromoting_host_context.h" | 30 #include "remoting/host/chromoting_host_context.h" |
30 #include "remoting/host/host_exit_codes.h" | 31 #include "remoting/host/host_exit_codes.h" |
31 #include "remoting/host/policy_watcher.h" | 32 #include "remoting/host/policy_watcher.h" |
32 #include "remoting/protocol/name_value_map.h" | |
33 #include "remoting/signaling/delegating_signal_strategy.h" | 33 #include "remoting/signaling/delegating_signal_strategy.h" |
34 | 34 |
35 #if defined(OS_WIN) | 35 #if defined(OS_WIN) |
36 #include "base/command_line.h" | 36 #include "base/command_line.h" |
37 #include "base/files/file_path.h" | 37 #include "base/files/file_path.h" |
38 | 38 |
39 #include "remoting/host/win/elevated_native_messaging_host.h" | 39 #include "remoting/host/win/elevated_native_messaging_host.h" |
40 #endif // defined(OS_WIN) | 40 #endif // defined(OS_WIN) |
41 | 41 |
42 namespace remoting { | 42 namespace remoting { |
43 | 43 |
44 namespace { | 44 namespace { |
45 | 45 |
46 const remoting::protocol::NameMapElement<It2MeHostState> kIt2MeHostStates[] = { | 46 const NameMapElement<It2MeHostState> kIt2MeHostStates[] = { |
47 {kDisconnected, "DISCONNECTED"}, | 47 {kDisconnected, "DISCONNECTED"}, |
48 {kStarting, "STARTING"}, | 48 {kStarting, "STARTING"}, |
49 {kRequestedAccessCode, "REQUESTED_ACCESS_CODE"}, | 49 {kRequestedAccessCode, "REQUESTED_ACCESS_CODE"}, |
50 {kReceivedAccessCode, "RECEIVED_ACCESS_CODE"}, | 50 {kReceivedAccessCode, "RECEIVED_ACCESS_CODE"}, |
51 {kConnected, "CONNECTED"}, | 51 {kConnected, "CONNECTED"}, |
52 {kError, "ERROR"}, | 52 {kError, "ERROR"}, |
53 {kInvalidDomainError, "INVALID_DOMAIN_ERROR"}, | 53 {kInvalidDomainError, "INVALID_DOMAIN_ERROR"}, |
54 {kConnecting, "CONNECTING"}, | 54 {kConnecting, "CONNECTING"}, |
55 }; | 55 }; |
56 | 56 |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 | 530 |
531 bool It2MeNativeMessagingHost::DelegateToElevatedHost( | 531 bool It2MeNativeMessagingHost::DelegateToElevatedHost( |
532 std::unique_ptr<base::DictionaryValue> message) { | 532 std::unique_ptr<base::DictionaryValue> message) { |
533 NOTREACHED(); | 533 NOTREACHED(); |
534 return false; | 534 return false; |
535 } | 535 } |
536 | 536 |
537 #endif // !defined(OS_WIN) | 537 #endif // !defined(OS_WIN) |
538 | 538 |
539 } // namespace remoting | 539 } // namespace remoting |
OLD | NEW |