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

Side by Side Diff: base/win/win_util.h

Issue 1351513002: Added common check for USER32 and GDI32 API availability. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nits in review. Created 5 years, 3 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 | « no previous file | base/win/win_util.cc » ('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 // ============================================================================= 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
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_
OLDNEW
« no previous file with comments | « no previous file | base/win/win_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698