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 // ============================================================================= | 5 // ============================================================================= |
6 // PLEASE READ | 6 // PLEASE READ |
7 // | 7 // |
8 // In general, you should not be adding stuff to this file. | 8 // In general, you should not be adding stuff to this file. |
9 // | 9 // |
10 // - If your thing is only used in one place, just put it in a reasonable | 10 // - If your thing is only used in one place, just put it in a reasonable |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // above. Returns true on success. | 127 // above. Returns true on success. |
128 BASE_EXPORT bool DismissVirtualKeyboard(); | 128 BASE_EXPORT bool DismissVirtualKeyboard(); |
129 | 129 |
130 // Returns true if the machine is enrolled to a domain. | 130 // Returns true if the machine is enrolled to a domain. |
131 BASE_EXPORT bool IsEnrolledToDomain(); | 131 BASE_EXPORT bool IsEnrolledToDomain(); |
132 | 132 |
133 // Used by tests to mock any wanted state. Call with |state| set to true to | 133 // Used by tests to mock any wanted state. Call with |state| set to true to |
134 // simulate being in a domain and false otherwise. | 134 // simulate being in a domain and false otherwise. |
135 BASE_EXPORT void SetDomainStateForTesting(bool state); | 135 BASE_EXPORT void SetDomainStateForTesting(bool state); |
136 | 136 |
| 137 // Returns true if the current operating system has support for SHA-256 |
| 138 // certificates. As its name indicates, this function provides a best-effort |
| 139 // answer, which is solely based on comparing version numbers. The function |
| 140 // may be re-implemented in the future to return a reliable value, based on |
| 141 // run-time detection of this capability. |
| 142 BASE_EXPORT bool MaybeHasSHA256Support(); |
| 143 |
137 } // namespace win | 144 } // namespace win |
138 } // namespace base | 145 } // namespace base |
139 | 146 |
140 #endif // BASE_WIN_WIN_UTIL_H_ | 147 #endif // BASE_WIN_WIN_UTIL_H_ |
OLD | NEW |