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

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

Issue 1356943004: Add RemoteDeviceLoader to create RemoteDevice from CryptAuth data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webui
Patch Set: move RemoteDevice creation in tests to util function Created 5 years, 2 months 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
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 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
OLDNEW
« no previous file with comments | « components/proximity_auth/proximity_monitor_impl_unittest.cc ('k') | components/proximity_auth/remote_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698