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_PAIRING_REGISTRY_H_ | 5 #ifndef REMOTING_PROTOCOL_PAIRING_REGISTRY_H_ |
6 #define REMOTING_PROTOCOL_PAIRING_REGISTRY_H_ | 6 #define REMOTING_PROTOCOL_PAIRING_REGISTRY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/threading/non_thread_safe.h" | 14 #include "base/threading/non_thread_safe.h" |
15 #include "base/time.h" | 15 #include "base/time/time.h" |
16 | 16 |
17 namespace remoting { | 17 namespace remoting { |
18 namespace protocol { | 18 namespace protocol { |
19 | 19 |
20 // PairingRegistry holds information about paired clients to support | 20 // PairingRegistry holds information about paired clients to support |
21 // PIN-less authentication. For each paired client, the registry holds | 21 // PIN-less authentication. For each paired client, the registry holds |
22 // the following information: | 22 // the following information: |
23 // * The name of the client. This is supplied by the client and is not | 23 // * The name of the client. This is supplied by the client and is not |
24 // guaranteed to be unique. | 24 // guaranteed to be unique. |
25 // * The unique id of the client. This is generated on-demand by this | 25 // * The unique id of the client. This is generated on-demand by this |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 113 |
114 scoped_ptr<Delegate> delegate_; | 114 scoped_ptr<Delegate> delegate_; |
115 | 115 |
116 DISALLOW_COPY_AND_ASSIGN(PairingRegistry); | 116 DISALLOW_COPY_AND_ASSIGN(PairingRegistry); |
117 }; | 117 }; |
118 | 118 |
119 } // namespace protocol | 119 } // namespace protocol |
120 } // namespace remoting | 120 } // namespace remoting |
121 | 121 |
122 #endif // REMOTING_PROTOCOL_PAIRING_REGISTRY_H_ | 122 #endif // REMOTING_PROTOCOL_PAIRING_REGISTRY_H_ |
OLD | NEW |