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_CLIENT_AUTHENTICATOR_H_ | 5 #ifndef REMOTING_PROTOCOL_THIRD_PARTY_CLIENT_AUTHENTICATOR_H_ |
6 #define REMOTING_PROTOCOL_THIRD_PARTY_CLIENT_AUTHENTICATOR_H_ | 6 #define REMOTING_PROTOCOL_THIRD_PARTY_CLIENT_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 "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "googleurl/src/gurl.h" | |
14 #include "remoting/protocol/third_party_authenticator_base.h" | 13 #include "remoting/protocol/third_party_authenticator_base.h" |
| 14 #include "url/gurl.h" |
15 | 15 |
16 class GURL; | 16 class GURL; |
17 | 17 |
18 namespace remoting { | 18 namespace remoting { |
19 namespace protocol { | 19 namespace protocol { |
20 | 20 |
21 // Implements the client side of the third party authentication mechanism. | 21 // Implements the client side of the third party authentication mechanism. |
22 // The client authenticator expects a |token_url| and |scope| in the first | 22 // The client authenticator expects a |token_url| and |scope| in the first |
23 // message from the host, then calls the |TokenFetcher| asynchronously to | 23 // message from the host, then calls the |TokenFetcher| asynchronously to |
24 // request a |token| and |shared_secret| from that url. If the server requires | 24 // request a |token| and |shared_secret| from that url. If the server requires |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 scoped_ptr<TokenFetcher> token_fetcher_; | 76 scoped_ptr<TokenFetcher> token_fetcher_; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(ThirdPartyClientAuthenticator); | 78 DISALLOW_COPY_AND_ASSIGN(ThirdPartyClientAuthenticator); |
79 }; | 79 }; |
80 | 80 |
81 | 81 |
82 } // namespace protocol | 82 } // namespace protocol |
83 } // namespace remoting | 83 } // namespace remoting |
84 | 84 |
85 #endif // REMOTING_PROTOCOL_THIRD_PARTY_CLIENT_AUTHENTICATOR_H_ | 85 #endif // REMOTING_PROTOCOL_THIRD_PARTY_CLIENT_AUTHENTICATOR_H_ |
OLD | NEW |