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

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

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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "components/proximity_auth/remote_device.h" 5 #include "components/proximity_auth/remote_device.h"
6 6
7 namespace proximity_auth { 7 namespace proximity_auth {
8 8
9 RemoteDevice::RemoteDevice() {} 9 RemoteDevice::RemoteDevice() {}
10 10
11 RemoteDevice::RemoteDevice(const std::string& name, 11 RemoteDevice::RemoteDevice(const std::string& user_id,
12 const std::string& name,
12 const std::string& public_key, 13 const std::string& public_key,
13 const std::string& bluetooth_address, 14 const std::string& bluetooth_address,
14 const std::string& persistent_symmetric_key) 15 const std::string& persistent_symmetric_key)
15 : name(name), 16 : user_id(user_id),
17 name(name),
16 public_key(public_key), 18 public_key(public_key),
17 bluetooth_address(bluetooth_address), 19 bluetooth_address(bluetooth_address),
18 persistent_symmetric_key(persistent_symmetric_key) {} 20 persistent_symmetric_key(persistent_symmetric_key) {}
19 21
20 RemoteDevice::~RemoteDevice() {} 22 RemoteDevice::~RemoteDevice() {}
21 23
22 } // namespace 24 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698