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/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 Loading... |
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 |
OLD | NEW |