| Index: mojo/android/system/src/org/chromium/mojo/system/SharedBufferHandleImpl.java
|
| diff --git a/mojo/android/system/src/org/chromium/mojo/system/SharedBufferHandleImpl.java b/mojo/android/system/src/org/chromium/mojo/system/SharedBufferHandleImpl.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4679bd097ff0292fc25f7230f9b6c26a7cfaf89d
|
| --- /dev/null
|
| +++ b/mojo/android/system/src/org/chromium/mojo/system/SharedBufferHandleImpl.java
|
| @@ -0,0 +1,52 @@
|
| +// 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;
|
| +
|
| +/**
|
| + * Implementation of {@link SharedBufferHandle}.
|
| + */
|
| +class SharedBufferHandleImpl extends HandleImpl implements SharedBufferHandle {
|
| +
|
| + /**
|
| + * @see HandleImpl#HandleImpl(CoreImpl, int)
|
| + */
|
| + SharedBufferHandleImpl(CoreImpl core, int mojoHandle) {
|
| + super(core, mojoHandle);
|
| + }
|
| +
|
| + /**
|
| + * @see HandleImpl#HandleImpl(UntypedHandleImpl)
|
| + */
|
| + SharedBufferHandleImpl(UntypedHandleImpl handle) {
|
| + super(handle);
|
| + }
|
| +
|
| + /**
|
| + * @see SharedBufferHandle#duplicate(DuplicateOptions)
|
| + */
|
| + @Override
|
| + public SharedBufferHandle duplicate(DuplicateOptions options) {
|
| + return mCore.duplicate(this, options);
|
| + }
|
| +
|
| + /**
|
| + * @see SharedBufferHandle#map(long, long, MapFlags)
|
| + */
|
| + @Override
|
| + public ByteBuffer map(long offset, long numBytes, MapFlags flags) {
|
| + return mCore.map(this, offset, numBytes, flags);
|
| + }
|
| +
|
| + /**
|
| + * @see SharedBufferHandle#unmap(ByteBuffer)
|
| + */
|
| + @Override
|
| + public void unmap(ByteBuffer buffer) {
|
| + mCore.unmap(buffer);
|
| + }
|
| +
|
| +}
|
|
|