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

Side by Side Diff: base/ios/device_util.h

Issue 1538743002: Switch to standard integer types in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DEPS roll too Created 4 years, 12 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
« no previous file with comments | « base/ios/crb_protocol_observers.mm ('k') | base/ios/device_util.mm » ('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 BASE_IOS_DEVICE_UTIL_H_ 5 #ifndef BASE_IOS_DEVICE_UTIL_H_
6 #define BASE_IOS_DEVICE_UTIL_H_ 6 #define BASE_IOS_DEVICE_UTIL_H_
7 7
8 #include <stdint.h>
9
8 #include <string> 10 #include <string>
9 11
10 namespace ios { 12 namespace ios {
11 namespace device_util { 13 namespace device_util {
12 14
13 // Returns the hardware version of the device the app is running on. 15 // Returns the hardware version of the device the app is running on.
14 // 16 //
15 // The returned string is the string returned by sysctlbyname() with name 17 // The returned string is the string returned by sysctlbyname() with name
16 // "hw.machine". Possible (known) values include: 18 // "hw.machine". Possible (known) values include:
17 // 19 //
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // Returns a hashed version of |in_string| using |salt| (which must not be 77 // Returns a hashed version of |in_string| using |salt| (which must not be
76 // zero-length). Different salt values should result in differently hashed 78 // zero-length). Different salt values should result in differently hashed
77 // strings. 79 // strings.
78 std::string GetSaltedString(const std::string& in_string, 80 std::string GetSaltedString(const std::string& in_string,
79 const std::string& salt); 81 const std::string& salt);
80 82
81 } // namespace device_util 83 } // namespace device_util
82 } // namespace ios 84 } // namespace ios
83 85
84 #endif // BASE_IOS_DEVICE_UTIL_H_ 86 #endif // BASE_IOS_DEVICE_UTIL_H_
OLDNEW
« no previous file with comments | « base/ios/crb_protocol_observers.mm ('k') | base/ios/device_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698