Index: mojo/public/java/src/org/chromium/mojo/system/Handle.java |
diff --git a/mojo/public/java/src/org/chromium/mojo/system/Handle.java b/mojo/public/java/src/org/chromium/mojo/system/Handle.java |
index e738fb6d24d50ede77ed806114d8663e5d0e209f..b4fcbd04f6238e5428b9bd15940bd6406bf9e596 100644 |
--- a/mojo/public/java/src/org/chromium/mojo/system/Handle.java |
+++ b/mojo/public/java/src/org/chromium/mojo/system/Handle.java |
@@ -44,4 +44,10 @@ public interface Handle extends Closeable { |
*/ |
public Core getCore(); |
+ /** |
+ * Passes ownership of the handle from this handle to the newly created Handle object, |
+ * invalidating this handle object in the process. |
+ */ |
+ public Handle pass(); |
+ |
} |