OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_H | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_H |
6 #define COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_H | 6 #define COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_H |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 namespace proximity_auth { | 10 namespace proximity_auth { |
11 | 11 |
12 struct RemoteDevice { | 12 struct RemoteDevice { |
13 public: | 13 public: |
| 14 enum BluetoothType { BLUETOOTH_CLASSIC, BLUETOOTH_LE }; |
| 15 |
| 16 std::string user_id; |
14 std::string name; | 17 std::string name; |
15 std::string public_key; | 18 std::string public_key; |
| 19 BluetoothType bluetooth_type; |
16 std::string bluetooth_address; | 20 std::string bluetooth_address; |
17 std::string persistent_symmetric_key; | 21 std::string persistent_symmetric_key; |
| 22 std::string sign_in_challenge; |
18 | 23 |
19 RemoteDevice(); | 24 RemoteDevice(); |
20 RemoteDevice(const std::string& name, | 25 RemoteDevice(const std::string& user_id, |
| 26 const std::string& name, |
21 const std::string& public_key, | 27 const std::string& public_key, |
| 28 BluetoothType bluetooth_type, |
22 const std::string& bluetooth_address, | 29 const std::string& bluetooth_address, |
23 const std::string& persistent_symmetric_key); | 30 const std::string& persistent_symmetric_key, |
| 31 std::string sign_in_challenge); |
24 ~RemoteDevice(); | 32 ~RemoteDevice(); |
25 }; | 33 }; |
26 | 34 |
27 } // namespace proximity_auth | 35 } // namespace proximity_auth |
28 | 36 |
29 #endif // COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_H | 37 #endif // COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_H |
OLD | NEW |