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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 // simulate being in a domain and false otherwise. | 159 // simulate being in a domain and false otherwise. |
160 BASE_EXPORT void SetDomainStateForTesting(bool state); | 160 BASE_EXPORT void SetDomainStateForTesting(bool state); |
161 | 161 |
162 // Returns true if the current operating system has support for SHA-256 | 162 // Returns true if the current operating system has support for SHA-256 |
163 // certificates. As its name indicates, this function provides a best-effort | 163 // certificates. As its name indicates, this function provides a best-effort |
164 // answer, which is solely based on comparing version numbers. The function | 164 // answer, which is solely based on comparing version numbers. The function |
165 // may be re-implemented in the future to return a reliable value, based on | 165 // may be re-implemented in the future to return a reliable value, based on |
166 // run-time detection of this capability. | 166 // run-time detection of this capability. |
167 BASE_EXPORT bool MaybeHasSHA256Support(); | 167 BASE_EXPORT bool MaybeHasSHA256Support(); |
168 | 168 |
| 169 // Returns true if the current process can make USER32 or GDI32 calls such as |
| 170 // CreateWindow and CreateDC. Windows 8 and above allow the kernel component |
| 171 // of these calls to be disabled which can cause undefined behaviour such as |
| 172 // crashes. This function can be used to guard areas of code using these calls |
| 173 // and provide a fallback path if necessary. |
| 174 BASE_EXPORT bool IsUser32AndGdi32Available(); |
| 175 |
169 } // namespace win | 176 } // namespace win |
170 } // namespace base | 177 } // namespace base |
171 | 178 |
172 #endif // BASE_WIN_WIN_UTIL_H_ | 179 #endif // BASE_WIN_WIN_UTIL_H_ |
OLD | NEW |