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_authenticator_base.h" | 5 #include "remoting/protocol/pairing_authenticator_base.h" |
6 | 6 |
| 7 #include <utility> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "remoting/base/constants.h" | 10 #include "remoting/base/constants.h" |
9 #include "remoting/protocol/channel_authenticator.h" | 11 #include "remoting/protocol/channel_authenticator.h" |
10 | 12 |
11 namespace remoting { | 13 namespace remoting { |
12 namespace protocol { | 14 namespace protocol { |
13 | 15 |
14 const buzz::StaticQName PairingAuthenticatorBase::kPairingInfoTag = | 16 const buzz::StaticQName PairingAuthenticatorBase::kPairingInfoTag = |
15 { kChromotingXmlNamespace, "pairing-info" }; | 17 { kChromotingXmlNamespace, "pairing-info" }; |
16 const buzz::StaticQName PairingAuthenticatorBase::kClientIdAttribute = | 18 const buzz::StaticQName PairingAuthenticatorBase::kClientIdAttribute = |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 v2_authenticator_ = std::move(authenticator); | 158 v2_authenticator_ = std::move(authenticator); |
157 if (message) { | 159 if (message) { |
158 ProcessMessage(message, resume_callback); | 160 ProcessMessage(message, resume_callback); |
159 } else { | 161 } else { |
160 resume_callback.Run(); | 162 resume_callback.Run(); |
161 } | 163 } |
162 } | 164 } |
163 | 165 |
164 } // namespace protocol | 166 } // namespace protocol |
165 } // namespace remoting | 167 } // namespace remoting |
OLD | NEW |