Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Side by Side Diff: remoting/host/it2me/it2me_native_messaging_host.cc

Issue 2798393007: Use SignalingAddress in SignalStrategy insterface. (Closed)
Patch Set: header Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « remoting/host/it2me/it2me_host_unittest.cc ('k') | remoting/host/register_support_host_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698