| Index: mojo/public/java/system/src/org/chromium/mojo/system/MessagePipeHandle.java
|
| diff --git a/mojo/public/java/system/src/org/chromium/mojo/system/MessagePipeHandle.java b/mojo/public/java/system/src/org/chromium/mojo/system/MessagePipeHandle.java
|
| index 60ac6825b42e40350750d595dbbed4dbc6f75a9a..deb6ac0f01e36e581d82928a641905cb00b6884d 100644
|
| --- a/mojo/public/java/system/src/org/chromium/mojo/system/MessagePipeHandle.java
|
| +++ b/mojo/public/java/system/src/org/chromium/mojo/system/MessagePipeHandle.java
|
| @@ -132,10 +132,6 @@ public interface MessagePipeHandle extends Handle {
|
| */
|
| public static class ReadMessageResult {
|
| /**
|
| - * The MojoResult value of the read call.
|
| - */
|
| - private int mMojoResult;
|
| - /**
|
| * If a message was read, the size in bytes of the message, otherwise the size in bytes of
|
| * the next message.
|
| */
|
| @@ -151,20 +147,6 @@ public interface MessagePipeHandle extends Handle {
|
| private List<UntypedHandle> mHandles;
|
|
|
| /**
|
| - * @return the mojoResult
|
| - */
|
| - public int getMojoResult() {
|
| - return mMojoResult;
|
| - }
|
| -
|
| - /**
|
| - * @param mojoResult the mojoResult to set
|
| - */
|
| - public void setMojoResult(int mojoResult) {
|
| - mMojoResult = mojoResult;
|
| - }
|
| -
|
| - /**
|
| * @return the messageSize
|
| */
|
| public int getMessageSize() {
|
| @@ -237,6 +219,6 @@ public interface MessagePipeHandle extends Handle {
|
| * will be true, or the read is NOT done and |wasMessageRead| will be false (if |mayDiscard| was
|
| * set, the message is also discarded in this case).
|
| */
|
| - ReadMessageResult readMessage(ByteBuffer bytes, int maxNumberOfHandles,
|
| - ReadFlags flags);
|
| + ResultAnd<ReadMessageResult> readMessage(
|
| + ByteBuffer bytes, int maxNumberOfHandles, ReadFlags flags);
|
| }
|
|
|