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

Side by Side Diff: rlz/lib/machine_id.h

Issue 102833007: Add base:: to string16 in rlz/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missed one Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « rlz/ios/lib/machine_id_ios.cc ('k') | rlz/lib/machine_id.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 RLZ_LIB_MACHINE_ID_H_ 5 #ifndef RLZ_LIB_MACHINE_ID_H_
6 #define RLZ_LIB_MACHINE_ID_H_ 6 #define RLZ_LIB_MACHINE_ID_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 9
10 #include <string> 10 #include <string>
11 11
12 namespace rlz_lib { 12 namespace rlz_lib {
13 13
14 // Gets the unique ID for the machine used for RLZ tracking purposes. On 14 // Gets the unique ID for the machine used for RLZ tracking purposes. On
15 // Windows, this ID is derived from the Windows machine SID, and is the string 15 // Windows, this ID is derived from the Windows machine SID, and is the string
16 // representation of a 20 byte hash + 4 bytes volum id + a 1 byte checksum. 16 // representation of a 20 byte hash + 4 bytes volum id + a 1 byte checksum.
17 // Included in financial pings with events, unless explicitly forbidden by the 17 // Included in financial pings with events, unless explicitly forbidden by the
18 // calling application. 18 // calling application.
19 bool GetMachineId(std::string* machine_id); 19 bool GetMachineId(std::string* machine_id);
20 20
21 // Retrieves a raw machine identifier string and a machine-specific 21 // Retrieves a raw machine identifier string and a machine-specific
22 // 4 byte value. GetMachineId() will SHA1 |data|, append |more_data|, compute 22 // 4 byte value. GetMachineId() will SHA1 |data|, append |more_data|, compute
23 // the Crc8 of that, and return a hex-encoded string of that data. 23 // the Crc8 of that, and return a hex-encoded string of that data.
24 bool GetRawMachineId(string16* data, int* more_data); 24 bool GetRawMachineId(base::string16* data, int* more_data);
25 25
26 namespace testing { 26 namespace testing {
27 bool GetMachineIdImpl(const string16& sid_string, 27 bool GetMachineIdImpl(const base::string16& sid_string,
28 int volume_id, 28 int volume_id,
29 std::string* machine_id); 29 std::string* machine_id);
30 } // namespace testing 30 } // namespace testing
31 31
32 } // namespace rlz_lib 32 } // namespace rlz_lib
33 33
34 #endif // RLZ_LIB_MACHINE_ID_H_ 34 #endif // RLZ_LIB_MACHINE_ID_H_
OLDNEW
« no previous file with comments | « rlz/ios/lib/machine_id_ios.cc ('k') | rlz/lib/machine_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698