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

Side by Side Diff: components/proximity_auth/cryptauth/cryptauth_enrollment_utils.h

Issue 1308393007: Add CryptAuth managers to EasyUnlockServiceRegular (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix windows compile 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 #ifndef COMPONENTS_PROXIMITY_AUTH_CRYPT_AUTH_ENROLLMENT_UTILS_H 5 #ifndef COMPONENTS_PROXIMITY_AUTH_CRYPT_AUTH_ENROLLMENT_UTILS_H
6 #define COMPONENTS_PROXIMITY_AUTH_CRYPT_AUTH_ENROLLMENT_UTILS_H 6 #define COMPONENTS_PROXIMITY_AUTH_CRYPT_AUTH_ENROLLMENT_UTILS_H
7 7
8 #include <stdint.h>
8 #include <string> 9 #include <string>
9 10
10 namespace proximity_auth { 11 namespace proximity_auth {
11 12
12 // Calculates an id for the specified user on the specified device. 13 // Calculates an id for the specified user on the specified device.
13 std::string CalculateDeviceUserId(const std::string& device_id, 14 std::string CalculateDeviceUserId(const std::string& device_id,
14 const std::string& user_id); 15 const std::string& user_id);
15 16
17 // Hashes |string| to an int64 value. These int64 hashes are used to fill the
18 // GcmDeviceInfo proto to upload to CryptAuth.
19 int64_t HashStringToInt64(const std::string& string);
20
16 } // namespace proximity_auth 21 } // namespace proximity_auth
17 22
18 #endif // COMPONENTS_PROXIMITY_AUTH_CRYPT_AUTH_ENROLLMENT_UTILS_H 23 #endif // COMPONENTS_PROXIMITY_AUTH_CRYPT_AUTH_ENROLLMENT_UTILS_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698