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_HOST_AUTHENTICATOR_H_ | 5 #ifndef REMOTING_PROTOCOL_THIRD_PARTY_HOST_AUTHENTICATOR_H_ |
6 #define REMOTING_PROTOCOL_THIRD_PARTY_HOST_AUTHENTICATOR_H_ | 6 #define REMOTING_PROTOCOL_THIRD_PARTY_HOST_AUTHENTICATOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "googleurl/src/gurl.h" | |
13 #include "remoting/protocol/third_party_authenticator_base.h" | 12 #include "remoting/protocol/third_party_authenticator_base.h" |
| 13 #include "url/gurl.h" |
14 | 14 |
15 namespace remoting { | 15 namespace remoting { |
16 | 16 |
17 class RsaKeyPair; | 17 class RsaKeyPair; |
18 | 18 |
19 namespace protocol { | 19 namespace protocol { |
20 | 20 |
21 // Implements the host side of the third party authentication mechanism. | 21 // Implements the host side of the third party authentication mechanism. |
22 // The host authenticator sends the |token_url| and |scope| obtained from the | 22 // The host authenticator sends the |token_url| and |scope| obtained from the |
23 // |TokenValidator| to the client, and expects a |token| in response. | 23 // |TokenValidator| to the client, and expects a |token| in response. |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 scoped_refptr<RsaKeyPair> key_pair_; | 90 scoped_refptr<RsaKeyPair> key_pair_; |
91 scoped_ptr<TokenValidator> token_validator_; | 91 scoped_ptr<TokenValidator> token_validator_; |
92 | 92 |
93 DISALLOW_COPY_AND_ASSIGN(ThirdPartyHostAuthenticator); | 93 DISALLOW_COPY_AND_ASSIGN(ThirdPartyHostAuthenticator); |
94 }; | 94 }; |
95 | 95 |
96 } // namespace protocol | 96 } // namespace protocol |
97 } // namespace remoting | 97 } // namespace remoting |
98 | 98 |
99 #endif // REMOTING_PROTOCOL_THIRD_PARTY_HOST_AUTHENTICATOR_H_ | 99 #endif // REMOTING_PROTOCOL_THIRD_PARTY_HOST_AUTHENTICATOR_H_ |
OLD | NEW |