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

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: Created 5 years, 3 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 std::string user_id;
14 std::string name; 15 std::string name;
15 std::string public_key; 16 std::string public_key;
16 std::string bluetooth_address; 17 std::string bluetooth_address;
17 std::string persistent_symmetric_key; 18 std::string persistent_symmetric_key;
19 std::string sign_in_challenge;
sacomoto 2015/09/24 12:41:59 nit: You could already add the flag for BLE device
Tim Song 2015/09/26 02:08:14 Done.
18 20
19 RemoteDevice(); 21 RemoteDevice();
20 RemoteDevice(const std::string& name, 22 RemoteDevice(const std::string& user_id,
23 const std::string& name,
21 const std::string& public_key, 24 const std::string& public_key,
22 const std::string& bluetooth_address, 25 const std::string& bluetooth_address,
23 const std::string& persistent_symmetric_key); 26 const std::string& persistent_symmetric_key);
24 ~RemoteDevice(); 27 ~RemoteDevice();
25 }; 28 };
26 29
27 } // namespace proximity_auth 30 } // namespace proximity_auth
28 31
29 #endif // COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_H 32 #endif // COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698