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

Side by Side Diff: remoting/host/register_support_host_request.cc

Issue 543433002: Roll WebRTC 7011:7046 libjingle: 7007:7045 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update README.chromium Created 6 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/register_support_host_request.h" 5 #include "remoting/host/register_support_host_request.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "remoting/base/constants.h" 12 #include "remoting/base/constants.h"
13 #include "remoting/host/host_config.h" 13 #include "remoting/host/host_config.h"
14 #include "remoting/signaling/iq_sender.h" 14 #include "remoting/signaling/iq_sender.h"
15 #include "remoting/signaling/signal_strategy.h" 15 #include "remoting/signaling/signal_strategy.h"
16 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h"
17 #include "third_party/libjingle/source/talk/xmpp/constants.h" 16 #include "third_party/libjingle/source/talk/xmpp/constants.h"
17 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h"
18 18
19 using buzz::QName; 19 using buzz::QName;
20 using buzz::XmlElement; 20 using buzz::XmlElement;
21 21
22 namespace remoting { 22 namespace remoting {
23 23
24 namespace { 24 namespace {
25 // Strings used in the request message we send to the bot. 25 // Strings used in the request message we send to the bot.
26 const char kRegisterQueryTag[] = "register-support-host"; 26 const char kRegisterQueryTag[] = "register-support-host";
27 const char kPublicKeyTag[] = "public-key"; 27 const char kPublicKeyTag[] = "public-key";
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 iq_sender_.reset(); 177 iq_sender_.reset();
178 signal_strategy_->RemoveListener(this); 178 signal_strategy_->RemoveListener(this);
179 signal_strategy_ = NULL; 179 signal_strategy_ = NULL;
180 180
181 RegisterCallback callback = callback_; 181 RegisterCallback callback = callback_;
182 callback_.Reset(); 182 callback_.Reset();
183 callback.Run(success, support_id, lifetime); 183 callback.Run(success, support_id, lifetime);
184 } 184 }
185 185
186 } // namespace remoting 186 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/pam_authorization_factory_posix.cc ('k') | remoting/host/register_support_host_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698