| 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 9b3d398d6f4703376b3c844070be4a4f18afa8a3..038a29281bc69688aa70c8a69cebebb2f485d6c4 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
|
| @@ -44,22 +44,29 @@ class TransportData;
|
| class MOJO_SYSTEM_IMPL_EXPORT MessageInTransit {
|
| public:
|
| typedef uint16_t Type;
|
| - // Messages that are forwarded to endpoints.
|
| - static const Type kTypeEndpoint = 0;
|
| + // Messages that are forwarded to endpoint clients.
|
| + static const Type kTypeEndpointClient = 0;
|
| + // Messages that are consumed by the |ChannelEndpoint|.
|
| + static const Type kTypeEndpoint = 1;
|
| // Messages that are consumed by the |Channel|.
|
| - static const Type kTypeChannel = 1;
|
| + static const Type kTypeChannel = 2;
|
| // Messages that are consumed by the |RawChannel| (implementation).
|
| - static const Type kTypeRawChannel = 2;
|
| + static const Type kTypeRawChannel = 3;
|
| // |ConnectionManager| implementations also use |RawChannel|s.
|
| // Messages sent to a |MasterConnectionManager|.
|
| - static const Type kTypeConnectionManager = 3;
|
| + static const Type kTypeConnectionManager = 4;
|
| // Messages sent by a |MasterConnectionManager| (all responses).
|
| - static const Type kTypeConnectionManagerAck = 4;
|
| + static const Type kTypeConnectionManagerAck = 5;
|
|
|
| typedef uint16_t Subtype;
|
| + // Subtypes for type |kTypeEndpointClient|:
|
| + // Message pipe or data pipe data (etc.).
|
| + static const Subtype kSubtypeEndpointClientData = 0;
|
| + // Data pipe: consumer -> producer message that data was consumed. Payload is
|
| + // |RemoteDataPipeAck|.
|
| + static const Subtype kSubtypeEndpointClientDataPipeAck = 1;
|
| // Subtypes for type |kTypeEndpoint|:
|
| - static const Subtype kSubtypeEndpointData = 0;
|
| - static const Subtype kSubtypeEndpointDataPipeAck = 1;
|
| + // TODO(vtl): Nothing yet.
|
| // Subtypes for type |kTypeChannel|:
|
| static const Subtype kSubtypeChannelAttachAndRunEndpoint = 0;
|
| static const Subtype kSubtypeChannelRemoveEndpoint = 1;
|
|
|