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 namespace tracked_prefs { | |
11 | |
12 enum MachineIdStatus { | |
gab
2015/01/26 19:40:46
Use enum class (avoids polluting the namespace and
alito
2015/01/26 21:01:10
Done.
| |
13 SUCCESS = 0, | |
14 FAILURE, // Returned if attempt to obtain a machine-specific ID fails. | |
15 NOT_IMPLEMENTED // Returned if the method for obtaining a | |
16 // machine-specific ID is not implemented for | |
17 // the system. | |
18 }; | |
19 | |
20 // Populates |machine_id| with a deterministic ID for this | |
21 // machine. |machine_id| must be non-NULL and point to a valid | |
22 // std::string object. Returns |FAILURE| if a machine ID cannot be | |
gab
2015/01/26 19:40:46
Remove "and point to a a valid std::string object"
alito
2015/01/26 21:01:10
Done.
| |
23 // obtained or |NOT_IMPLEMENTED| on systems for which this feature is | |
24 // not supported (in both cases |machine_id| is left untouched). | |
25 MachineIdStatus GetDeterministicMachineSpecificId(std::string* machine_id); | |
26 | |
27 } // namespace tracked_prefs | |
28 | |
29 #endif // CHROME_BROWSER_PREFS_TRACKED_DEVICE_ID_H_ | |
OLD | NEW |