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

Unified Diff: mojo/system/android/src/org/chromium/mojo/system/UntypedHandleImpl.java

Issue 228723002: Java API for mojo system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding shared handle. Created 6 years, 8 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/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);
+ }
+
+}

Powered by Google App Engine
This is Rietveld 408576698