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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <windows.h> | 9 #include <windows.h> |
10 | 10 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 public: | 139 public: |
140 typedef HANDLE Handle; | 140 typedef HANDLE Handle; |
141 | 141 |
142 static void StartTracking(HANDLE handle, const void* owner, const void* pc); | 142 static void StartTracking(HANDLE handle, const void* owner, const void* pc); |
143 static void StopTracking(HANDLE handle, const void* owner, const void* pc); | 143 static void StopTracking(HANDLE handle, const void* owner, const void* pc); |
144 | 144 |
145 private: | 145 private: |
146 DISALLOW_IMPLICIT_CONSTRUCTORS(VerifierTraits); | 146 DISALLOW_IMPLICIT_CONSTRUCTORS(VerifierTraits); |
147 }; | 147 }; |
148 | 148 |
149 typedef GenericScopedHandle<HandleTraits, DummyVerifierTraits> ScopedHandle; | 149 typedef GenericScopedHandle<HandleTraits, VerifierTraits> ScopedHandle; |
150 | 150 |
151 } // namespace win | 151 } // namespace win |
152 } // namespace base | 152 } // namespace base |
153 | 153 |
154 #endif // BASE_SCOPED_HANDLE_WIN_H_ | 154 #endif // BASE_SCOPED_HANDLE_WIN_H_ |
OLD | NEW |