Index: mojo/system/android/src/org/chromium/mojo/system/DataPipeProducerHandleImpl.java |
diff --git a/mojo/system/android/src/org/chromium/mojo/system/DataPipeProducerHandleImpl.java b/mojo/system/android/src/org/chromium/mojo/system/DataPipeProducerHandleImpl.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8db902a1faa7be5d28fb3ec0c6cd3e6981b44cc3 |
--- /dev/null |
+++ b/mojo/system/android/src/org/chromium/mojo/system/DataPipeProducerHandleImpl.java |
@@ -0,0 +1,61 @@ |
+// 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.ProducerHandle; |
+import org.chromium.mojo.system.DataPipe.WriteFlags; |
+ |
+import java.nio.ByteBuffer; |
+ |
+/** |
+ * TODO(qsr): Insert description here. |
+ */ |
+public class DataPipeProducerHandleImpl extends HandleImpl implements ProducerHandle { |
+ |
+ /** |
+ * TODO(qsr): |
+ */ |
+ public DataPipeProducerHandleImpl(CoreImpl core, int mojoHandle) { |
+ super(core, mojoHandle); |
+ } |
+ |
+ /** |
+ * TODO(qsr): |
+ * |
+ * @param handle |
+ */ |
+ DataPipeProducerHandleImpl(HandleImpl handle) { |
+ super(handle); |
+ } |
+ |
+ /* |
+ * (non-Javadoc) |
+ * @see org.chromium.mojo.system.DataPipe.ProducerHandle#writeData(...) |
+ */ |
+ @Override |
+ public int writeData(ByteBuffer elements, WriteFlags flags) { |
+ return mCore.writeData(this, elements, flags); |
+ } |
+ |
+ /* |
+ * (non-Javadoc) |
+ * @see org.chromium.mojo.system.DataPipe.ProducerHandle#beingWriteData(...) |
+ */ |
+ @Override |
+ public ByteBuffer beingWriteData(int numBytes, WriteFlags flags) { |
+ // TODO(qsr): Auto-generated method stub |
+ return mCore.beingWriteData(this, numBytes, flags); |
+ } |
+ |
+ /* |
+ * (non-Javadoc) |
+ * @see org.chromium.mojo.system.DataPipe.ProducerHandle#endWriteData(...) |
+ */ |
+ @Override |
+ public void endWriteData(int numBytesWritten) { |
+ mCore.endWriteData(this, numBytesWritten); |
+ } |
+ |
+} |