• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3 // found in the LICENSE file.
4 
5 #include "base/win/scoped_handle.h"
6 #include <windows.h>
7 
8 namespace base {
9 namespace win {
10 
11 // Static.
CloseHandle(HANDLE handle)12 bool HandleTraits::CloseHandle(HANDLE handle) {
13   return ::CloseHandle(handle);
14 }
15 
16 // Static.
StartTracking(HANDLE handle,const void * owner,const void * pc1,const void * pc2)17 void VerifierTraits::StartTracking(HANDLE handle,
18                                    const void* owner,
19                                    const void* pc1,
20                                    const void* pc2) {}
21 
22 // Static.
StopTracking(HANDLE handle,const void * owner,const void * pc1,const void * pc2)23 void VerifierTraits::StopTracking(HANDLE handle,
24                                   const void* owner,
25                                   const void* pc1,
26                                   const void* pc2) {}
27 
DisableHandleVerifier()28 void DisableHandleVerifier() {}
29 
OnHandleBeingClosed(HANDLE handle)30 void OnHandleBeingClosed(HANDLE handle) {}
31 
32 }  // namespace win
33 }  // namespace base
34