Lines Matching refs:ScopedHandleBase
74 class ScopedHandleBase {
78 ScopedHandleBase() {} in ScopedHandleBase() function
79 explicit ScopedHandleBase(HandleType handle) : handle_(handle) {} in ScopedHandleBase() function
80 ~ScopedHandleBase() { CloseIfNecessary(); } in ~ScopedHandleBase()
83 explicit ScopedHandleBase(ScopedHandleBase<CompatibleHandleType> other) in ScopedHandleBase() function
87 ScopedHandleBase(ScopedHandleBase&& other) noexcept in ScopedHandleBase() function
89 ScopedHandleBase& operator=(ScopedHandleBase&& other) noexcept {
104 static ScopedHandleBase<HandleType> From( in From()
105 ScopedHandleBase<PassedHandleType> other) { in From()
109 return ScopedHandleBase<HandleType>( in From()
113 void swap(ScopedHandleBase& other) { handle_.swap(other.handle_); } in swap()
130 bool operator==(const ScopedHandleBase& other) const {
142 DISALLOW_COPY_AND_ASSIGN(ScopedHandleBase);
146 inline ScopedHandleBase<HandleType> MakeScopedHandle(HandleType handle) { in MakeScopedHandle()
147 return ScopedHandleBase<HandleType>(handle); in MakeScopedHandle()
200 typedef ScopedHandleBase<Handle> ScopedHandle;
208 inline void Close(ScopedHandleBase<HandleType> /*handle*/) { in Close()