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

Unified Diff: mojo/public/interfaces/bindings/pipe_control_messages.mojom

Issue 2649573004: Mojo bindings: merge the control messages of sending disconnect reason and notifying endpoint close… (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698