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

Side by Side Diff: mojo/public/java/system/src/org/chromium/mojo/system/InvalidHandle.java

Issue 2741033003: Mojo EDK: Introduce MojoQueryHandleSignalsState API (Closed)
Patch Set: fix stupid bad DCHECK Created 3 years, 9 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.mojo.system; 5 package org.chromium.mojo.system;
6 6
7 import org.chromium.mojo.system.Core.HandleSignals; 7 import org.chromium.mojo.system.Core.HandleSignalsState;
8 import org.chromium.mojo.system.Core.WaitResult;
9 import org.chromium.mojo.system.DataPipe.ConsumerHandle; 8 import org.chromium.mojo.system.DataPipe.ConsumerHandle;
10 import org.chromium.mojo.system.DataPipe.ProducerHandle; 9 import org.chromium.mojo.system.DataPipe.ProducerHandle;
11 10
12 import java.nio.ByteBuffer; 11 import java.nio.ByteBuffer;
13 import java.util.List; 12 import java.util.List;
14 13
15 /** 14 /**
16 * A handle that will always be invalid. 15 * A handle that will always be invalid.
17 */ 16 */
18 public class InvalidHandle implements UntypedHandle, MessagePipeHandle, Consumer Handle, 17 public class InvalidHandle implements UntypedHandle, MessagePipeHandle, Consumer Handle,
(...skipping 12 matching lines...) Expand all
31 30
32 /** 31 /**
33 * @see Handle#close() 32 * @see Handle#close()
34 */ 33 */
35 @Override 34 @Override
36 public void close() { 35 public void close() {
37 // Do nothing. 36 // Do nothing.
38 } 37 }
39 38
40 /** 39 /**
41 * @see Handle#wait(Core.HandleSignals, long) 40 * @see Handle#querySignalsState()
42 */ 41 */
43 @Override 42 @Override
44 public WaitResult wait(HandleSignals signals, long deadline) { 43 public HandleSignalsState querySignalsState() {
45 throw new MojoException(MojoResult.INVALID_ARGUMENT); 44 throw new MojoException(MojoResult.INVALID_ARGUMENT);
46 } 45 }
47 46
48 /** 47 /**
49 * @see Handle#isValid() 48 * @see Handle#isValid()
50 */ 49 */
51 @Override 50 @Override
52 public boolean isValid() { 51 public boolean isValid() {
53 return false; 52 return false;
54 } 53 }
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 /** 210 /**
212 * @see MessagePipeHandle#readMessage(java.nio.ByteBuffer, int, MessagePipeH andle.ReadFlags) 211 * @see MessagePipeHandle#readMessage(java.nio.ByteBuffer, int, MessagePipeH andle.ReadFlags)
213 */ 212 */
214 @Override 213 @Override
215 public ResultAnd<ReadMessageResult> readMessage( 214 public ResultAnd<ReadMessageResult> readMessage(
216 ByteBuffer bytes, int maxNumberOfHandles, ReadFlags flags) { 215 ByteBuffer bytes, int maxNumberOfHandles, ReadFlags flags) {
217 throw new MojoException(MojoResult.INVALID_ARGUMENT); 216 throw new MojoException(MojoResult.INVALID_ARGUMENT);
218 } 217 }
219 218
220 } 219 }
OLDNEW
« no previous file with comments | « mojo/public/java/system/src/org/chromium/mojo/system/Handle.java ('k') | mojo/public/js/core.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698