1 // Copyright 2013 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.
5 #ifndef MOJO_PUBLIC_UTILITY_SCOPED_HANDLE_H_
6 #define MOJO_PUBLIC_UTILITY_SCOPED_HANDLE_H_
8 #include "mojo/public/system/core.h"
12 // Closes handle_ when deleted.
13 // This probably wants tons of improvements, but those can be made as needed.
16 ScopedHandle(Handle handle);
18 Handle get() const { return handle_; }
27 #endif // MOJO_PUBLIC_SYSTEM_SCOPED_HANDLE_H_