| 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/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "remoting/protocol/client_authentication_config.h" |
| 14 #include "remoting/protocol/third_party_authenticator_base.h" | 15 #include "remoting/protocol/third_party_authenticator_base.h" |
| 15 | 16 |
| 16 namespace remoting { | 17 namespace remoting { |
| 17 namespace protocol { | 18 namespace protocol { |
| 18 | 19 |
| 19 // Implements the client side of the third party authentication mechanism. | 20 // Implements the client side of the third party authentication mechanism. |
| 20 // The client authenticator expects a |token_url| and |scope| in the first | 21 // The client authenticator expects a |token_url| and |scope| in the first |
| 21 // message from the host, then calls the |TokenFetcher| asynchronously to | 22 // message from the host, then calls the |TokenFetcher| asynchronously to |
| 22 // request a |token| and |shared_secret| from that url. If the server requires | 23 // request a |token| and |shared_secret| from that url. If the server requires |
| 23 // interactive authentication, the |TokenFetcher| implementation will show the | 24 // interactive authentication, the |TokenFetcher| implementation will show the |
| (...skipping 28 matching lines...) Expand all Loading... |
| 52 base::WeakPtrFactory<ThirdPartyClientAuthenticator> weak_factory_; | 53 base::WeakPtrFactory<ThirdPartyClientAuthenticator> weak_factory_; |
| 53 | 54 |
| 54 DISALLOW_COPY_AND_ASSIGN(ThirdPartyClientAuthenticator); | 55 DISALLOW_COPY_AND_ASSIGN(ThirdPartyClientAuthenticator); |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 | 58 |
| 58 } // namespace protocol | 59 } // namespace protocol |
| 59 } // namespace remoting | 60 } // namespace remoting |
| 60 | 61 |
| 61 #endif // REMOTING_PROTOCOL_THIRD_PARTY_CLIENT_AUTHENTICATOR_H_ | 62 #endif // REMOTING_PROTOCOL_THIRD_PARTY_CLIENT_AUTHENTICATOR_H_ |
| OLD | NEW |