Index: mojo/system/android/src/org/chromium/mojo/system/UntypedHandleImpl.java |
diff --git a/mojo/system/android/src/org/chromium/mojo/system/UntypedHandleImpl.java b/mojo/system/android/src/org/chromium/mojo/system/UntypedHandleImpl.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..780fe1617c3f59057a05ce68ca0685862e580330 |
--- /dev/null |
+++ b/mojo/system/android/src/org/chromium/mojo/system/UntypedHandleImpl.java |
@@ -0,0 +1,58 @@ |
+// 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.DataPipe.ConsumerHandle; |
+import org.chromium.mojo.system.DataPipe.ProducerHandle; |
+ |
+/** |
+ * TODO(qsr): Insert description here. |
+ */ |
+public class UntypedHandleImpl extends HandleImpl implements UntypedHandle { |
+ |
+ /** |
+ * TODO(qsr): |
+ */ |
+ UntypedHandleImpl(CoreImpl core, int mojoHandle) { |
+ super(core, mojoHandle); |
+ } |
+ |
+ /* |
+ * (non-Javadoc) |
+ * @see org.chromium.mojo.system.Handle#toMessagePipeHandle() |
+ */ |
+ @Override |
+ public MessagePipeHandle toMessagePipeHandle() { |
+ return new MessagePipeHandleImpl(this); |
+ } |
+ |
+ /* |
+ * (non-Javadoc) |
+ * @see org.chromium.mojo.system.Handle#toDataPipeConsumerHandle() |
+ */ |
+ @Override |
+ public ConsumerHandle toDataPipeConsumerHandle() { |
+ return new DataPipeConsumerHandleImpl(this); |
+ } |
+ |
+ /* |
+ * (non-Javadoc) |
+ * @see org.chromium.mojo.system.Handle#toDataPipeProducerHandle() |
+ */ |
+ @Override |
+ public ProducerHandle toDataPipeProducerHandle() { |
+ return new DataPipeProducerHandleImpl(this); |
+ } |
+ |
+ /* |
+ * (non-Javadoc) |
+ * @see org.chromium.mojo.system.Handle#toSharedBufferHandle() |
+ */ |
+ @Override |
+ public SharedBufferHandle toSharedBufferHandle() { |
+ return new SharedBufferHandleImpl(this); |
+ } |
+ |
+} |