1 // Copyright 2014 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 package org.chromium.mojo.bindings;
7 import org.chromium.mojo.system.Handle;
9 import java.io.Closeable;
12 * Describes a class that owns a handle.
14 * @param <H> The type of the owned handle.
16 public interface HandleOwner<H extends Handle> extends Closeable {
19 * Pass the handle owned by this class.
21 public H passHandle();