| 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 <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/json/json_reader.h" | 12 #include "base/json/json_reader.h" |
| 13 #include "base/json/json_writer.h" | 13 #include "base/json/json_writer.h" |
| 14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
| 16 #include "base/strings/stringize_macros.h" | 16 #include "base/strings/stringize_macros.h" |
| 17 #include "base/threading/thread.h" | 17 #include "base/threading/thread.h" |
| 18 #include "base/values.h" | 18 #include "base/values.h" |
| 19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
| 20 #include "net/base/url_util.h" | 20 #include "net/base/url_util.h" |
| 21 #include "net/url_request/url_request_context_getter.h" | 21 #include "net/url_request/url_request_context_getter.h" |
| 22 #include "remoting/base/auto_thread_task_runner.h" |
| 22 #include "remoting/host/chromoting_host_context.h" | 23 #include "remoting/host/chromoting_host_context.h" |
| 23 #include "remoting/host/host_exit_codes.h" | 24 #include "remoting/host/host_exit_codes.h" |
| 24 #include "remoting/host/service_urls.h" | 25 #include "remoting/host/service_urls.h" |
| 25 #include "remoting/protocol/name_value_map.h" | 26 #include "remoting/protocol/name_value_map.h" |
| 26 | 27 |
| 27 namespace remoting { | 28 namespace remoting { |
| 28 | 29 |
| 29 namespace { | 30 namespace { |
| 30 | 31 |
| 31 const remoting::protocol::NameMapElement<It2MeHostState> kIt2MeHostStates[] = { | 32 const remoting::protocol::NameMapElement<It2MeHostState> kIt2MeHostStates[] = { |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 return host_context_->ui_task_runner(); | 322 return host_context_->ui_task_runner(); |
| 322 } | 323 } |
| 323 | 324 |
| 324 /* static */ | 325 /* static */ |
| 325 std::string It2MeNativeMessagingHost::HostStateToString( | 326 std::string It2MeNativeMessagingHost::HostStateToString( |
| 326 It2MeHostState host_state) { | 327 It2MeHostState host_state) { |
| 327 return ValueToName(kIt2MeHostStates, host_state); | 328 return ValueToName(kIt2MeHostStates, host_state); |
| 328 } | 329 } |
| 329 | 330 |
| 330 } // namespace remoting | 331 } // namespace remoting |
| OLD | NEW |