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

Side by Side Diff: remoting/protocol/pairing_host_authenticator.cc

Issue 2443903004: Add xmllite and xmpp sources to third_party/ (Closed)
Patch Set: Explicitly use webrtc_overrides/webrtc/base/logging.h Created 3 years, 11 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/protocol/pairing_host_authenticator.h" 5 #include "remoting/protocol/pairing_host_authenticator.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 "remoting/base/constants.h" 9 #include "remoting/base/constants.h"
10 #include "remoting/protocol/channel_authenticator.h" 10 #include "remoting/protocol/channel_authenticator.h"
11 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" 11 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h"
12 12
13 namespace remoting { 13 namespace remoting {
14 namespace protocol { 14 namespace protocol {
15 15
16 PairingHostAuthenticator::PairingHostAuthenticator( 16 PairingHostAuthenticator::PairingHostAuthenticator(
17 scoped_refptr<PairingRegistry> pairing_registry, 17 scoped_refptr<PairingRegistry> pairing_registry,
18 const CreateBaseAuthenticatorCallback& create_base_authenticator_callback, 18 const CreateBaseAuthenticatorCallback& create_base_authenticator_callback,
19 const std::string& pin) 19 const std::string& pin)
20 : pairing_registry_(pairing_registry), 20 : pairing_registry_(pairing_registry),
21 create_base_authenticator_callback_(create_base_authenticator_callback), 21 create_base_authenticator_callback_(create_base_authenticator_callback),
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } else { 89 } else {
90 using_paired_secret_ = true; 90 using_paired_secret_ = true;
91 spake2_authenticator_ = create_base_authenticator_callback_.Run( 91 spake2_authenticator_ = create_base_authenticator_callback_.Run(
92 pairing_secret, preferred_initial_state); 92 pairing_secret, preferred_initial_state);
93 } 93 }
94 resume_callback.Run(); 94 resume_callback.Run();
95 } 95 }
96 96
97 } // namespace protocol 97 } // namespace protocol
98 } // namespace remoting 98 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/pairing_client_authenticator.cc ('k') | remoting/protocol/protocol_mock_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698