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

Unified Diff: mojo/public/java/bindings/src/org/chromium/mojo/bindings/InterfaceRequest.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/bindings/src/org/chromium/mojo/bindings/InterfaceRequest.java
diff --git a/mojo/public/java/bindings/src/org/chromium/mojo/bindings/InterfaceRequest.java b/mojo/public/java/bindings/src/org/chromium/mojo/bindings/InterfaceRequest.java
deleted file mode 100644
index 61899b446798a2057e0a5b215a4a4aec25af21d3..0000000000000000000000000000000000000000
--- a/mojo/public/java/bindings/src/org/chromium/mojo/bindings/InterfaceRequest.java
+++ /dev/null
@@ -1,58 +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.bindings;
-
-import org.chromium.mojo.system.MessagePipeHandle;
-
-/**
- * One end of the message pipe representing a request to create an implementation to be bound to it.
- * The other end of the pipe is bound to a proxy, which can be used immediately, while the
- * InterfaceRequest is being sent.
- * <p>
- * InterfaceRequest are built using |Interface.Manager|.
- *
- * @param <P> the type of the remote interface proxy.
- */
-public class InterfaceRequest<P extends Interface> implements HandleOwner<MessagePipeHandle> {
-
- /**
- * The handle which will be sent and will be connected to the implementation.
- */
- private final MessagePipeHandle mHandle;
-
- /**
- * Constructor.
- *
- * @param handle the handle which will be sent and will be connected to the implementation.
- */
- InterfaceRequest(MessagePipeHandle handle) {
- mHandle = handle;
- }
-
- /**
- * @see HandleOwner#passHandle()
- */
- @Override
- public MessagePipeHandle passHandle() {
- return mHandle.pass();
- }
-
- /**
- * @see java.io.Closeable#close()
- */
- @Override
- public void close() {
- mHandle.close();
- }
-
- /**
- * Returns an {@link InterfaceRequest} that wraps the given handle. This method is not type safe
- * and should be avoided unless absolutely necessary.
- */
- @SuppressWarnings("rawtypes")
- public static InterfaceRequest asInterfaceRequestUnsafe(MessagePipeHandle handle) {
- return new InterfaceRequest(handle);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698