| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |