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

Side by Side Diff: mojo/android/system/src/org/chromium/mojo/system/DataPipeProducerHandleImpl.java

Issue 228723002: Java API for mojo system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding empty file to force creation. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.mojo.system;
6
7 import org.chromium.mojo.system.DataPipe.ProducerHandle;
8 import org.chromium.mojo.system.DataPipe.WriteFlags;
9
10 import java.nio.ByteBuffer;
11
12 /**
13 * Implementation of {@link ProducerHandle}.
14 */
15 class DataPipeProducerHandleImpl extends HandleImpl implements ProducerHandle {
16
17 /**
18 * @see HandleImpl#HandleImpl(CoreImpl, int)
19 */
20 DataPipeProducerHandleImpl(CoreImpl core, int mojoHandle) {
21 super(core, mojoHandle);
22 }
23
24 /**
25 * @see HandleImpl#HandleImpl(UntypedHandleImpl)
26 */
27 DataPipeProducerHandleImpl(UntypedHandleImpl handle) {
28 super(handle);
29 }
30
31 /**
32 * @see DataPipe.ProducerHandle#writeData(ByteBuffer, WriteFlags)
33 */
34 @Override
35 public int writeData(ByteBuffer elements, WriteFlags flags) {
36 return mCore.writeData(this, elements, flags);
37 }
38
39 /**
40 * @see DataPipe.ProducerHandle#beginWriteData(int, WriteFlags)
41 */
42 @Override
43 public ByteBuffer beginWriteData(int numBytes, WriteFlags flags) {
44 return mCore.beginWriteData(this, numBytes, flags);
45 }
46
47 /**
48 * @see DataPipe.ProducerHandle#endWriteData(int)
49 */
50 @Override
51 public void endWriteData(int numBytesWritten) {
52 mCore.endWriteData(this, numBytesWritten);
53 }
54
55 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698