Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Unified Diff: mojo/public/java/src/org/chromium/mojo/system/Handle.java

Issue 325953006: Add pass operation on handles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix findbugs issue Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
+
}

Powered by Google App Engine
This is Rietveld 408576698