OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_PREFS_TRACKED_DEVICE_ID_H_ | |
6 #define CHROME_BROWSER_PREFS_TRACKED_DEVICE_ID_H_ | |
7 | |
8 #include <string> | |
9 | |
10 enum class MachineIdStatus { | |
11 SUCCESS = 0, | |
12 FAILURE, // Returned if attempt to obtain a machine-specific ID fails. | |
13 NOT_IMPLEMENTED // Returned if the method for obtaining a | |
grt (UTC plus 2)
2015/01/27 21:08:45
wrap at 80 cols:
NOT_IMPLEMENTED // Returned if
alito
2015/01/29 23:25:48
Done.
| |
14 // machine-specific ID is not implemented for | |
15 // the system. | |
16 }; | |
17 | |
18 // Populates |machine_id| with a deterministic ID for this | |
grt (UTC plus 2)
2015/01/27 21:08:45
80 cols:
// Populates |machine_id| with a determin
alito
2015/01/29 23:25:48
Done.
| |
19 // machine. |machine_id| must not be null. Returns |FAILURE| if a | |
20 // machine ID cannot be obtained or |NOT_IMPLEMENTED| on systems for | |
21 // which this feature is not supported (in both cases |machine_id| is | |
22 // left untouched). | |
23 MachineIdStatus GetDeterministicMachineSpecificId(std::string* machine_id); | |
24 | |
25 #endif // CHROME_BROWSER_PREFS_TRACKED_DEVICE_ID_H_ | |
OLD | NEW |