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

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

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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/system/src/org/chromium/mojo/system/Handle.java
diff --git a/mojo/public/java/system/src/org/chromium/mojo/system/Handle.java b/mojo/public/java/system/src/org/chromium/mojo/system/Handle.java
deleted file mode 100644
index 6181669dff6a74ba565624e20c2a9ba5e524dbc1..0000000000000000000000000000000000000000
--- a/mojo/public/java/system/src/org/chromium/mojo/system/Handle.java
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.mojo.system;
-
-import org.chromium.mojo.system.Core.WaitResult;
-
-import java.io.Closeable;
-
-/**
- * A generic mojo handle.
- */
-public interface Handle extends Closeable {
-
- /**
- * Closes the given |handle|.
- * <p>
- * Concurrent operations on |handle| may succeed (or fail as usual) if they happen before the
- * close, be cancelled with result |MojoResult.CANCELLED| if they properly overlap (this is
- * likely the case with |wait()|, etc.), or fail with |MojoResult.INVALID_ARGUMENT| if they
- * happen after.
- */
- @Override
- public void close();
-
- /**
- * @see Core#wait(Handle, Core.HandleSignals, long)
- */
- public WaitResult wait(Core.HandleSignals signals, long deadline);
-
- /**
- * @return whether the handle is valid. A handle is valid until it has been explicitly closed or
- * send through a message pipe via |MessagePipeHandle.writeMessage|.
- */
- public boolean isValid();
-
- /**
- * Converts this handle into an {@link UntypedHandle}, invalidating this handle.
- */
- public UntypedHandle toUntypedHandle();
-
- /**
- * Returns the {@link Core} implementation for this handle. Can be null if this handle is
- * invalid.
- */
- 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();
-
- /**
- * Releases the native handle backed by this {@link Handle}. The caller owns the handle and must
- * close it.
- */
- public int releaseNativeHandle();
-
-}

Powered by Google App Engine
This is Rietveld 408576698