| 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/third_party_client_authenticator.h" | 5 #include "remoting/protocol/third_party_client_authenticator.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/base64.h" | 9 #include "base/base64.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "remoting/base/constants.h" | 13 #include "remoting/base/constants.h" |
| 14 #include "remoting/base/rsa_key_pair.h" | 14 #include "remoting/base/rsa_key_pair.h" |
| 15 #include "remoting/protocol/channel_authenticator.h" | 15 #include "remoting/protocol/channel_authenticator.h" |
| 16 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 16 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h" |
| 17 | 17 |
| 18 namespace remoting { | 18 namespace remoting { |
| 19 namespace protocol { | 19 namespace protocol { |
| 20 | 20 |
| 21 ThirdPartyClientAuthenticator::ThirdPartyClientAuthenticator( | 21 ThirdPartyClientAuthenticator::ThirdPartyClientAuthenticator( |
| 22 const CreateBaseAuthenticatorCallback& create_base_authenticator_callback, | 22 const CreateBaseAuthenticatorCallback& create_base_authenticator_callback, |
| 23 const FetchThirdPartyTokenCallback& fetch_token_callback) | 23 const FetchThirdPartyTokenCallback& fetch_token_callback) |
| 24 : ThirdPartyAuthenticatorBase(WAITING_MESSAGE), | 24 : ThirdPartyAuthenticatorBase(WAITING_MESSAGE), |
| 25 create_base_authenticator_callback_(create_base_authenticator_callback), | 25 create_base_authenticator_callback_(create_base_authenticator_callback), |
| 26 fetch_token_callback_(std::move(fetch_token_callback)), | 26 fetch_token_callback_(std::move(fetch_token_callback)), |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 } else { | 73 } else { |
| 74 token_state_ = MESSAGE_READY; | 74 token_state_ = MESSAGE_READY; |
| 75 underlying_ = | 75 underlying_ = |
| 76 create_base_authenticator_callback_.Run(shared_secret, MESSAGE_READY); | 76 create_base_authenticator_callback_.Run(shared_secret, MESSAGE_READY); |
| 77 } | 77 } |
| 78 resume_callback.Run(); | 78 resume_callback.Run(); |
| 79 } | 79 } |
| 80 | 80 |
| 81 } // namespace protocol | 81 } // namespace protocol |
| 82 } // namespace remoting | 82 } // namespace remoting |
| OLD | NEW |