blob: 199b0a1c04ad8e066549eb9fa221b06f0d3f1d17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// 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.ConsumerHandle;
import org.chromium.mojo.system.DataPipe.ProducerHandle;
/**
* A mojo handle of unknown type. This handle can be typed by using one of its methods, which will
* return a handle of the requested type and invalidate this object. No validation is made when the
* conversion operation is called.
*/
public interface UntypedHandle extends Handle {
/**
* @see org.chromium.mojo.system.Handle#pass()
*/
@Override
public UntypedHandle pass();
/**
* Returns the underlying handle, as a {@link MessagePipeHandle}, invalidating this
* representation.
*/
public MessagePipeHandle toMessagePipeHandle();
/**
* Returns the underlying handle, as a {@link ConsumerHandle}, invalidating this representation.
*/
public ConsumerHandle toDataPipeConsumerHandle();
/**
* Returns the underlying handle, as a {@link ProducerHandle}, invalidating this representation.
*/
public ProducerHandle toDataPipeProducerHandle();
/**
* Returns the underlying handle, as a {@link SharedBufferHandle}, invalidating this
* representation.
*/
public SharedBufferHandle toSharedBufferHandle();
}
|