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

Unified Diff: mojo/system/android/src/org/chromium/mojo/system/MessagePipeHandleImpl.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/MessagePipeHandleImpl.java
diff --git a/mojo/system/android/src/org/chromium/mojo/system/MessagePipeHandleImpl.java b/mojo/system/android/src/org/chromium/mojo/system/MessagePipeHandleImpl.java
new file mode 100644
index 0000000000000000000000000000000000000000..586ee6c9b72b16e7f4ec9c8b0f6ce3fd5da33cc3
--- /dev/null
+++ b/mojo/system/android/src/org/chromium/mojo/system/MessagePipeHandleImpl.java
@@ -0,0 +1,51 @@
+// 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 java.nio.ByteBuffer;
+import java.util.List;
+
+/**
+ * TODO(qsr): Insert description here.
+ */
+public class MessagePipeHandleImpl extends HandleImpl implements MessagePipeHandle {
+
+ /**
+ * TODO(qsr):
+ */
+ public MessagePipeHandleImpl(CoreImpl core, int mojoHandle) {
+ super(core, mojoHandle);
+ }
+
+ /**
+ * TODO(qsr):
+ *
+ * @param handle
+ */
+ public MessagePipeHandleImpl(HandleImpl handle) {
+ super(handle);
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.chromium.mojo.system.MessagePipeHandle#writeMessage(...)
+ */
+ @Override
+ public void writeMessage(ByteBuffer bytes, List<Handle> handles, WriteFlags flags) {
+ mCore.writeMessage(this, bytes, handles, flags);
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.chromium.mojo.system.MessagePipeHandle#readMessage(...)
+ */
+ @Override
+ public ReadMessageResult readMessage(ByteBuffer bytes,
+ int maxNumberOfHandles,
+ ReadFlags flags) {
+ return mCore.readMessage(this, bytes, maxNumberOfHandles, flags);
+ }
+
+}

Powered by Google App Engine
This is Rietveld 408576698