Lines Matching refs:handle_
79 explicit ScopedHandleBase(HandleType handle) : handle_(handle) {} in ScopedHandleBase()
84 : handle_(other.release()) {} in ScopedHandleBase()
88 : handle_(other.release()) {} in ScopedHandleBase()
92 handle_ = other.release();
97 const HandleType& get() const { return handle_; } in get()
99 DCHECK(handle_.is_valid());
100 return &handle_;
113 void swap(ScopedHandleBase& other) { handle_.swap(other.handle_); } in swap()
117 rv.swap(handle_); in release()
123 handle_ = handle;
126 bool is_valid() const { return handle_.is_valid(); } in is_valid()
128 explicit operator bool() const { return handle_; }
131 return handle_.value() == other.get().value();
136 if (handle_.is_valid()) in CloseIfNecessary()
137 handle_.Close(); in CloseIfNecessary()
140 HandleType handle_; variable