OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_INTERNALS_UTIL_H_ | 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_INTERNALS_UTIL_H_ |
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_INTERNALS_UTIL_H_ | 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_INTERNALS_UTIL_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <map> | 10 #include <map> |
9 #include <string> | 11 #include <string> |
10 | 12 |
11 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
12 #include "base/values.h" | 14 #include "base/values.h" |
13 | 15 |
14 namespace signin_internals_util { | 16 namespace signin_internals_util { |
15 | 17 |
16 // Preference prefixes for signin and token values. | 18 // Preference prefixes for signin and token values. |
17 extern const char kSigninPrefPrefix[]; | 19 extern const char kSigninPrefPrefix[]; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // These are enough to perform equality checks across a single users tokens, | 81 // These are enough to perform equality checks across a single users tokens, |
80 // while preventing outsiders from reverse-engineering the actual token from | 82 // while preventing outsiders from reverse-engineering the actual token from |
81 // the displayed value. | 83 // the displayed value. |
82 // Note that for readability (in about:signin-internals), an empty string | 84 // Note that for readability (in about:signin-internals), an empty string |
83 // is not hashed, but simply returned as an empty string. | 85 // is not hashed, but simply returned as an empty string. |
84 std::string GetTruncatedHash(const std::string& str); | 86 std::string GetTruncatedHash(const std::string& str); |
85 | 87 |
86 } // namespace signin_internals_util | 88 } // namespace signin_internals_util |
87 | 89 |
88 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_INTERNALS_UTIL_H_ | 90 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_INTERNALS_UTIL_H_ |
OLD | NEW |