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

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

Issue 291103004: Add conversion from Handle to UntypedHandle (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: HandleImpl -> HandleBase Created 6 years, 7 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 6f60055d74deac867da7baa5017882898ca16228..e7337b89c12553807827035bb2220f45a83e3bda 100644
--- a/mojo/public/java/src/org/chromium/mojo/system/Handle.java
+++ b/mojo/public/java/src/org/chromium/mojo/system/Handle.java
@@ -33,4 +33,9 @@ public interface Handle extends Closeable {
*/
public boolean isValid();
+ /**
+ * Converts this handle into an {@link UntypedHandle}, invalidating this handle.
+ */
+ public UntypedHandle toUntypedHandle();
+
}

Powered by Google App Engine
This is Rietveld 408576698