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 <memory> |
8 #include <string> | 9 #include <string> |
9 | 10 |
10 #include "base/callback.h" | 11 #include "base/callback.h" |
11 #include "base/macros.h" | 12 #include "base/macros.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/client_authentication_config.h" |
15 #include "remoting/protocol/third_party_authenticator_base.h" | 15 #include "remoting/protocol/third_party_authenticator_base.h" |
16 | 16 |
17 namespace remoting { | 17 namespace remoting { |
18 namespace protocol { | 18 namespace protocol { |
19 | 19 |
20 // Implements the client side of the third party authentication mechanism. | 20 // Implements the client side of the third party authentication mechanism. |
21 // 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 |
22 // message from the host, then calls the |TokenFetcher| asynchronously to | 22 // message from the host, then calls the |TokenFetcher| asynchronously to |
(...skipping 30 matching lines...) Expand all Loading... |
53 base::WeakPtrFactory<ThirdPartyClientAuthenticator> weak_factory_; | 53 base::WeakPtrFactory<ThirdPartyClientAuthenticator> weak_factory_; |
54 | 54 |
55 DISALLOW_COPY_AND_ASSIGN(ThirdPartyClientAuthenticator); | 55 DISALLOW_COPY_AND_ASSIGN(ThirdPartyClientAuthenticator); |
56 }; | 56 }; |
57 | 57 |
58 | 58 |
59 } // namespace protocol | 59 } // namespace protocol |
60 } // namespace remoting | 60 } // namespace remoting |
61 | 61 |
62 #endif // REMOTING_PROTOCOL_THIRD_PARTY_CLIENT_AUTHENTICATOR_H_ | 62 #endif // REMOTING_PROTOCOL_THIRD_PARTY_CLIENT_AUTHENTICATOR_H_ |
OLD | NEW |