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_NEGOTIATING_CLIENT_AUTHENTICATOR_H_ | 5 #ifndef REMOTING_PROTOCOL_NEGOTIATING_CLIENT_AUTHENTICATOR_H_ |
6 #define REMOTING_PROTOCOL_NEGOTIATING_CLIENT_AUTHENTICATOR_H_ | 6 #define REMOTING_PROTOCOL_NEGOTIATING_CLIENT_AUTHENTICATOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // has a preferred authenticator that can optimistically send an initial | 53 // has a preferred authenticator that can optimistically send an initial |
54 // message. | 54 // message. |
55 void CreatePreferredAuthenticator(); | 55 void CreatePreferredAuthenticator(); |
56 | 56 |
57 // Creates a shared-secret authenticator in state |initial_state| with the | 57 // Creates a shared-secret authenticator in state |initial_state| with the |
58 // given |shared_secret|, then runs |resume_callback|. | 58 // given |shared_secret|, then runs |resume_callback|. |
59 void CreateSharedSecretAuthenticator(Authenticator::State initial_state, | 59 void CreateSharedSecretAuthenticator(Authenticator::State initial_state, |
60 const base::Closure& resume_callback, | 60 const base::Closure& resume_callback, |
61 const std::string& shared_secret); | 61 const std::string& shared_secret); |
62 | 62 |
| 63 bool is_paired(); |
| 64 |
63 std::string local_id_; | 65 std::string local_id_; |
64 std::string remote_id_; | 66 std::string remote_id_; |
65 | 67 |
66 ClientAuthenticationConfig config_; | 68 ClientAuthenticationConfig config_; |
67 | 69 |
68 // Internal NegotiatingClientAuthenticator data. | 70 // Internal NegotiatingClientAuthenticator data. |
69 bool method_set_by_host_ = false; | 71 bool method_set_by_host_ = false; |
70 base::WeakPtrFactory<NegotiatingClientAuthenticator> weak_factory_; | 72 base::WeakPtrFactory<NegotiatingClientAuthenticator> weak_factory_; |
71 | 73 |
72 DISALLOW_COPY_AND_ASSIGN(NegotiatingClientAuthenticator); | 74 DISALLOW_COPY_AND_ASSIGN(NegotiatingClientAuthenticator); |
73 }; | 75 }; |
74 | 76 |
75 } // namespace protocol | 77 } // namespace protocol |
76 } // namespace remoting | 78 } // namespace remoting |
77 | 79 |
78 #endif // REMOTING_PROTOCOL_NEGOTIATING_CLIENT_AUTHENTICATOR_H_ | 80 #endif // REMOTING_PROTOCOL_NEGOTIATING_CLIENT_AUTHENTICATOR_H_ |
OLD | NEW |