| 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 |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 } else { | 291 } else { |
| 292 std::string local_jid; | 292 std::string local_jid; |
| 293 | 293 |
| 294 if (!message->GetString("localJid", &local_jid)) { | 294 if (!message->GetString("localJid", &local_jid)) { |
| 295 SendErrorAndExit(std::move(response), "'localJid' not found in request."); | 295 SendErrorAndExit(std::move(response), "'localJid' not found in request."); |
| 296 return; | 296 return; |
| 297 } | 297 } |
| 298 | 298 |
| 299 auto delegating_signal_strategy = | 299 auto delegating_signal_strategy = |
| 300 base::MakeUnique<DelegatingSignalStrategy>( | 300 base::MakeUnique<DelegatingSignalStrategy>( |
| 301 local_jid, host_context_->network_task_runner(), | 301 SignalingAddress(local_jid), host_context_->network_task_runner(), |
| 302 base::Bind(&It2MeNativeMessagingHost::SendOutgoingIq, | 302 base::Bind(&It2MeNativeMessagingHost::SendOutgoingIq, |
| 303 weak_factory_.GetWeakPtr())); | 303 weak_factory_.GetWeakPtr())); |
| 304 incoming_message_callback_ = | 304 incoming_message_callback_ = |
| 305 delegating_signal_strategy->GetIncomingMessageCallback(); | 305 delegating_signal_strategy->GetIncomingMessageCallback(); |
| 306 signal_strategy = std::move(delegating_signal_strategy); | 306 signal_strategy = std::move(delegating_signal_strategy); |
| 307 } | 307 } |
| 308 | 308 |
| 309 std::string directory_bot_jid = service_urls->directory_bot_jid(); | 309 std::string directory_bot_jid = service_urls->directory_bot_jid(); |
| 310 | 310 |
| 311 #if !defined(NDEBUG) | 311 #if !defined(NDEBUG) |
| (...skipping 218 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 |