| Index: mojo/public/interfaces/bindings/pipe_control_messages.mojom
|
| diff --git a/mojo/public/interfaces/bindings/pipe_control_messages.mojom b/mojo/public/interfaces/bindings/pipe_control_messages.mojom
|
| index c743ffe70207e8749967f8c158bf43b080ca2370..df3c43bb1aceb04273c6dc0b09e35be42ee5f1ba 100644
|
| --- a/mojo/public/interfaces/bindings/pipe_control_messages.mojom
|
| +++ b/mojo/public/interfaces/bindings/pipe_control_messages.mojom
|
| @@ -29,14 +29,21 @@ union RunOrClosePipeInput {
|
| associated_endpoint_closed_before_sent_event;
|
| };
|
|
|
| +// A user-defined reason about why the interface is disconnected.
|
| +struct DisconnectReason {
|
| + uint32 custom_reason;
|
| + string description;
|
| +};
|
| +
|
| // An event to notify that an interface endpoint set up at the message sender
|
| // side has been closed.
|
| //
|
| -// This event is only used for associated interfaces. When a master interface
|
| -// is closed, the message pipe is shutdown directly.
|
| +// This event is omitted if the endpoint belongs to the master interface and
|
| +// there is no disconnect reason specified.
|
| struct PeerAssociatedEndpointClosedEvent {
|
| // The interface ID.
|
| uint32 id;
|
| + DisconnectReason? disconnect_reason;
|
| };
|
|
|
| // An event to notify that an interface endpoint that is meant to be set up at
|
|
|