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

Unified Diff: third_party/mojo/src/mojo/edk/system/message_in_transit.h

Issue 883843002: Update mojo sdk to rev 126532ce21c5c3c55a1e1693731411cb60169efd (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to review Created 5 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: third_party/mojo/src/mojo/edk/system/message_in_transit.h
diff --git a/third_party/mojo/src/mojo/edk/system/message_in_transit.h b/third_party/mojo/src/mojo/edk/system/message_in_transit.h
index 023362ac95e3a08e8ec09854103feace2b569fbb..9f118f9730b5549cf319de4f6d8f56c569e0ebfd 100644
--- a/third_party/mojo/src/mojo/edk/system/message_in_transit.h
+++ b/third_party/mojo/src/mojo/edk/system/message_in_transit.h
@@ -50,6 +50,11 @@ class MOJO_SYSTEM_IMPL_EXPORT MessageInTransit {
static const Type kTypeChannel = 1;
// Messages that are consumed by the |RawChannel| (implementation).
static const Type kTypeRawChannel = 2;
+ // |ConnectionManager| implementations also use |RawChannel|s.
+ // Messages sent to a |MasterConnectionManager|.
+ static const Type kTypeConnectionManager = 3;
+ // Messages sent by a |MasterConnectionManager| (all responses).
+ static const Type kTypeConnectionManagerAck = 4;
typedef uint16_t Subtype;
// Subtypes for type |kTypeEndpoint|:
@@ -58,9 +63,18 @@ class MOJO_SYSTEM_IMPL_EXPORT MessageInTransit {
static const Subtype kSubtypeChannelAttachAndRunEndpoint = 0;
static const Subtype kSubtypeChannelRemoveEndpoint = 1;
static const Subtype kSubtypeChannelRemoveEndpointAck = 2;
-
// Subtypes for type |kTypeRawChannel|:
static const Subtype kSubtypeRawChannelPosixExtraPlatformHandles = 0;
+ // Subtypes for type |kTypeConnectionManager| (the message data is always a
+ // buffer containing the connection ID):
+ static const Subtype kSubtypeConnectionManagerAllowConnect = 0;
+ static const Subtype kSubtypeConnectionManagerCancelConnect = 1;
+ static const Subtype kSubtypeConnectionManagerConnect = 2;
+ // Subtypes for type |kTypeConnectionManagerAck| (failure acks never have any
+ // message contents; success acks for "connect" always have a
+ // |ProcessIdentifier| as data and *may* have a platform handle attached):
+ static const Subtype kSubtypeConnectionManagerAckFailure = 0;
+ static const Subtype kSubtypeConnectionManagerAckSuccess = 1;
// Messages (the header and data) must always be aligned to a multiple of this
// quantity (which must be a power of 2).

Powered by Google App Engine
This is Rietveld 408576698