| 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_authenticator_base.h" | 5 #include "remoting/protocol/third_party_authenticator_base.h" |
| 6 | 6 |
| 7 #include "base/base64.h" | 7 #include "base/base64.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "remoting/base/constants.h" | 11 #include "remoting/base/constants.h" |
| 12 #include "remoting/base/rsa_key_pair.h" | 12 #include "remoting/base/rsa_key_pair.h" |
| 13 #include "remoting/protocol/channel_authenticator.h" | 13 #include "remoting/protocol/channel_authenticator.h" |
| 14 #include "remoting/protocol/v2_authenticator.h" | |
| 15 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 14 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" |
| 16 | 15 |
| 17 namespace remoting { | 16 namespace remoting { |
| 18 namespace protocol { | 17 namespace protocol { |
| 19 | 18 |
| 20 // static | 19 // static |
| 21 const buzz::StaticQName ThirdPartyAuthenticatorBase::kTokenUrlTag = | 20 const buzz::StaticQName ThirdPartyAuthenticatorBase::kTokenUrlTag = |
| 22 { remoting::kChromotingXmlNamespace, "third-party-token-url" }; | 21 { remoting::kChromotingXmlNamespace, "third-party-token-url" }; |
| 23 const buzz::StaticQName ThirdPartyAuthenticatorBase::kTokenScopeTag = | 22 const buzz::StaticQName ThirdPartyAuthenticatorBase::kTokenScopeTag = |
| 24 { remoting::kChromotingXmlNamespace, "third-party-token-scope" }; | 23 { remoting::kChromotingXmlNamespace, "third-party-token-scope" }; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 93 |
| 95 scoped_ptr<ChannelAuthenticator> | 94 scoped_ptr<ChannelAuthenticator> |
| 96 ThirdPartyAuthenticatorBase::CreateChannelAuthenticator() const { | 95 ThirdPartyAuthenticatorBase::CreateChannelAuthenticator() const { |
| 97 DCHECK_EQ(state(), ACCEPTED); | 96 DCHECK_EQ(state(), ACCEPTED); |
| 98 | 97 |
| 99 return underlying_->CreateChannelAuthenticator(); | 98 return underlying_->CreateChannelAuthenticator(); |
| 100 } | 99 } |
| 101 | 100 |
| 102 } // namespace protocol | 101 } // namespace protocol |
| 103 } // namespace remoting | 102 } // namespace remoting |
| OLD | NEW |