Lines Matching refs:handle
31 // - IsValid() method can tolerate multiple invalid handle values such as NULL
42 explicit GenericScopedHandle(Handle handle) : handle_(Traits::NullHandle()) {
43 Set(handle);
67 void Set(Handle handle) {
68 if (handle_ != handle) {
71 if (Traits::IsHandleValid(handle)) {
72 handle_ = handle;
73 Verifier::StartTracking(handle, this, BASE_WIN_GET_CALLER,
98 // Explicitly closes the owned handle.
120 // Closes the handle.
121 static bool BASE_EXPORT CloseHandle(HANDLE handle);
123 // Returns true if the handle value is valid.
124 static bool IsHandleValid(HANDLE handle) {
125 return handle != NULL && handle != INVALID_HANDLE_VALUE;
128 // Returns NULL handle value.
142 static void StartTracking(HANDLE handle, const void* owner,
144 static void StopTracking(HANDLE handle, const void* owner,
156 static void StartTracking(HANDLE handle, const void* owner,
158 static void StopTracking(HANDLE handle, const void* owner,
172 // This should be called whenever the OS is closing a handle, if extended
173 // verification of improper handle closing is desired. If |handle| is being
174 // tracked by the handle verifier and ScopedHandle is not the one closing it,
176 void BASE_EXPORT OnHandleBeingClosed(HANDLE handle);