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 #ifndef REMOTING_PROTOCOL_THIRD_PARTY_AUTHENTICATOR_BASE_H_ | 5 #ifndef REMOTING_PROTOCOL_THIRD_PARTY_AUTHENTICATOR_BASE_H_ |
6 #define REMOTING_PROTOCOL_THIRD_PARTY_AUTHENTICATOR_BASE_H_ | 6 #define REMOTING_PROTOCOL_THIRD_PARTY_AUTHENTICATOR_BASE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 public: | 34 public: |
35 ~ThirdPartyAuthenticatorBase() override; | 35 ~ThirdPartyAuthenticatorBase() override; |
36 | 36 |
37 // Authenticator interface. | 37 // Authenticator interface. |
38 State state() const override; | 38 State state() const override; |
39 bool started() const override; | 39 bool started() const override; |
40 RejectionReason rejection_reason() const override; | 40 RejectionReason rejection_reason() const override; |
41 void ProcessMessage(const buzz::XmlElement* message, | 41 void ProcessMessage(const buzz::XmlElement* message, |
42 const base::Closure& resume_callback) override; | 42 const base::Closure& resume_callback) override; |
43 scoped_ptr<buzz::XmlElement> GetNextMessage() override; | 43 scoped_ptr<buzz::XmlElement> GetNextMessage() override; |
| 44 const std::string& GetAuthKey() const override; |
44 scoped_ptr<ChannelAuthenticator> CreateChannelAuthenticator() const override; | 45 scoped_ptr<ChannelAuthenticator> CreateChannelAuthenticator() const override; |
45 | 46 |
46 protected: | 47 protected: |
47 // XML tag names for third party authentication fields. | 48 // XML tag names for third party authentication fields. |
48 static const buzz::StaticQName kTokenUrlTag; | 49 static const buzz::StaticQName kTokenUrlTag; |
49 static const buzz::StaticQName kTokenScopeTag; | 50 static const buzz::StaticQName kTokenScopeTag; |
50 static const buzz::StaticQName kTokenTag; | 51 static const buzz::StaticQName kTokenTag; |
51 | 52 |
52 explicit ThirdPartyAuthenticatorBase(State initial_state); | 53 explicit ThirdPartyAuthenticatorBase(State initial_state); |
53 | 54 |
(...skipping 16 matching lines...) Expand all Loading... |
70 RejectionReason rejection_reason_; | 71 RejectionReason rejection_reason_; |
71 | 72 |
72 private: | 73 private: |
73 DISALLOW_COPY_AND_ASSIGN(ThirdPartyAuthenticatorBase); | 74 DISALLOW_COPY_AND_ASSIGN(ThirdPartyAuthenticatorBase); |
74 }; | 75 }; |
75 | 76 |
76 } // namespace protocol | 77 } // namespace protocol |
77 } // namespace remoting | 78 } // namespace remoting |
78 | 79 |
79 #endif // REMOTING_PROTOCOL_THIRD_PARTY_AUTHENTICATOR_BASE_H_ | 80 #endif // REMOTING_PROTOCOL_THIRD_PARTY_AUTHENTICATOR_BASE_H_ |
OLD | NEW |