Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Side by Side Diff: components/cryptauth/remote_device.h

Issue 2560713002: Move RemoteDevice from //components/proximity_auth to //components/cryptauth so that it can be easi… (Closed)
Patch Set: Add cryptauth dependency. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/cryptauth/BUILD.gn ('k') | components/cryptauth/remote_device.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include <vector> 9 #include <vector>
10 10
11 namespace proximity_auth { 11 namespace cryptauth {
12 12
13 struct RemoteDevice { 13 struct RemoteDevice {
14 public: 14 public:
15 enum BluetoothType { BLUETOOTH_CLASSIC, BLUETOOTH_LE }; 15 enum BluetoothType { BLUETOOTH_CLASSIC, BLUETOOTH_LE };
16 16
17 std::string user_id; 17 std::string user_id;
18 std::string name; 18 std::string name;
19 std::string public_key; 19 std::string public_key;
20 BluetoothType bluetooth_type; 20 BluetoothType bluetooth_type;
21 std::string bluetooth_address; 21 std::string bluetooth_address;
22 std::string persistent_symmetric_key; 22 std::string persistent_symmetric_key;
23 std::string sign_in_challenge; 23 std::string sign_in_challenge;
24 24
25 RemoteDevice(); 25 RemoteDevice();
26 RemoteDevice(const std::string& user_id, 26 RemoteDevice(const std::string& user_id,
27 const std::string& name, 27 const std::string& name,
28 const std::string& public_key, 28 const std::string& public_key,
29 BluetoothType bluetooth_type, 29 BluetoothType bluetooth_type,
30 const std::string& bluetooth_address, 30 const std::string& bluetooth_address,
31 const std::string& persistent_symmetric_key, 31 const std::string& persistent_symmetric_key,
32 std::string sign_in_challenge); 32 std::string sign_in_challenge);
33 RemoteDevice(const RemoteDevice& other); 33 RemoteDevice(const RemoteDevice& other);
34 ~RemoteDevice(); 34 ~RemoteDevice();
35 }; 35 };
36 36
37 typedef std::vector<RemoteDevice> RemoteDeviceList; 37 typedef std::vector<RemoteDevice> RemoteDeviceList;
38 38
39 } // namespace proximity_auth 39 } // namespace cryptauth
40 40
41 #endif // COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_H 41 #endif // COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_H
OLDNEW
« no previous file with comments | « components/cryptauth/BUILD.gn ('k') | components/cryptauth/remote_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698