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_WIN_SCOPED_HANDLE_H_ | 5 #ifndef BASE_WIN_SCOPED_HANDLE_H_ |
6 #define BASE_WIN_SCOPED_HANDLE_H_ | 6 #define BASE_WIN_SCOPED_HANDLE_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include "base/base_export.h" | 10 #include "base/base_export.h" |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
172 // VerifierTraits at runtime. It has no effect if DummyVerifierTraits is used | 172 // VerifierTraits at runtime. It has no effect if DummyVerifierTraits is used |
173 // for ScopedHandle. | 173 // for ScopedHandle. |
174 void BASE_EXPORT DisableHandleVerifier(); | 174 void BASE_EXPORT DisableHandleVerifier(); |
175 | 175 |
176 // This should be called whenever the OS is closing a handle, if extended | 176 // This should be called whenever the OS is closing a handle, if extended |
177 // verification of improper handle closing is desired. If |handle| is being | 177 // verification of improper handle closing is desired. If |handle| is being |
178 // tracked by the handle verifier and ScopedHandle is not the one closing it, | 178 // tracked by the handle verifier and ScopedHandle is not the one closing it, |
179 // a CHECK is generated. | 179 // a CHECK is generated. |
180 void BASE_EXPORT OnHandleBeingClosed(HANDLE handle); | 180 void BASE_EXPORT OnHandleBeingClosed(HANDLE handle); |
181 | 181 |
182 HMODULE BASE_EXPORT GetHandleVerifierModuleForTesting(); | |
scottmg
2016/03/11 19:02:18
Could you put these BASE_EXPORTs before the return
scottmg
2016/03/11 19:02:18
Some sort of comment here.
Will Harris
2016/03/11 20:35:31
Done.
Will Harris
2016/03/11 20:35:31
Done.
| |
183 | |
182 } // namespace win | 184 } // namespace win |
183 } // namespace base | 185 } // namespace base |
184 | 186 |
185 #endif // BASE_WIN_SCOPED_HANDLE_H_ | 187 #endif // BASE_WIN_SCOPED_HANDLE_H_ |
OLD | NEW |