[sql] Remove _HAS_EXCEPTIONS=0 from build info.
[chromium-blink-merge.git] / chrome / browser / prefs / tracked / device_id.h
blob6ff57b88e0eb372c1051a65f05d77c6183b13089
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.
5 #ifndef CHROME_BROWSER_PREFS_TRACKED_DEVICE_ID_H_
6 #define CHROME_BROWSER_PREFS_TRACKED_DEVICE_ID_H_
8 #include <string>
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 machine-specific ID
14 // is not implemented for the system.
17 // Populates |machine_id| with a deterministic ID for this machine. |machine_id|
18 // must not be null. Returns |FAILURE| if a machine ID cannot be obtained or
19 // |NOT_IMPLEMENTED| on systems for which this feature is not supported (in both
20 // cases |machine_id| is left untouched).
21 MachineIdStatus GetDeterministicMachineSpecificId(std::string* machine_id);
23 #endif // CHROME_BROWSER_PREFS_TRACKED_DEVICE_ID_H_