OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MOJO_EDK_SYSTEM_MESSAGE_IN_TRANSIT_H_ | 5 #ifndef MOJO_EDK_SYSTEM_MESSAGE_IN_TRANSIT_H_ |
6 #define MOJO_EDK_SYSTEM_MESSAGE_IN_TRANSIT_H_ | 6 #define MOJO_EDK_SYSTEM_MESSAGE_IN_TRANSIT_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 static const Type kTypeChannel = 2; | 52 static const Type kTypeChannel = 2; |
53 // Messages that are consumed by the |RawChannel| (implementation). | 53 // Messages that are consumed by the |RawChannel| (implementation). |
54 static const Type kTypeRawChannel = 3; | 54 static const Type kTypeRawChannel = 3; |
55 | 55 |
56 typedef uint16_t Subtype; | 56 typedef uint16_t Subtype; |
57 // Subtypes for type |kTypeMessagePipeEndpoint|: | 57 // Subtypes for type |kTypeMessagePipeEndpoint|: |
58 static const Subtype kSubtypeMessagePipeEndpointData = 0; | 58 static const Subtype kSubtypeMessagePipeEndpointData = 0; |
59 // Subtypes for type |kTypeMessagePipe|: | 59 // Subtypes for type |kTypeMessagePipe|: |
60 // Nothing currently. | 60 // Nothing currently. |
61 // Subtypes for type |kTypeChannel|: | 61 // Subtypes for type |kTypeChannel|: |
62 static const Subtype kSubtypeChannelRunMessagePipeEndpoint = 0; | 62 static const Subtype kSubtypeChannelAttachAndRunEndpoint = 0; |
63 static const Subtype kSubtypeChannelRemoveMessagePipeEndpoint = 1; | 63 static const Subtype kSubtypeChannelRemoveMessagePipeEndpoint = 1; |
64 static const Subtype kSubtypeChannelRemoveMessagePipeEndpointAck = 2; | 64 static const Subtype kSubtypeChannelRemoveMessagePipeEndpointAck = 2; |
| 65 |
65 // Subtypes for type |kTypeRawChannel|: | 66 // Subtypes for type |kTypeRawChannel|: |
66 static const Subtype kSubtypeRawChannelPosixExtraPlatformHandles = 0; | 67 static const Subtype kSubtypeRawChannelPosixExtraPlatformHandles = 0; |
67 | 68 |
68 // Messages (the header and data) must always be aligned to a multiple of this | 69 // Messages (the header and data) must always be aligned to a multiple of this |
69 // quantity (which must be a power of 2). | 70 // quantity (which must be a power of 2). |
70 static const size_t kMessageAlignment = 8; | 71 static const size_t kMessageAlignment = 8; |
71 | 72 |
72 // Forward-declare |Header| so that |View| can use it: | 73 // Forward-declare |Header| so that |View| can use it: |
73 private: | 74 private: |
74 struct Header; | 75 struct Header; |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 // some reason.) | 260 // some reason.) |
260 scoped_ptr<DispatcherVector> dispatchers_; | 261 scoped_ptr<DispatcherVector> dispatchers_; |
261 | 262 |
262 DISALLOW_COPY_AND_ASSIGN(MessageInTransit); | 263 DISALLOW_COPY_AND_ASSIGN(MessageInTransit); |
263 }; | 264 }; |
264 | 265 |
265 } // namespace system | 266 } // namespace system |
266 } // namespace mojo | 267 } // namespace mojo |
267 | 268 |
268 #endif // MOJO_EDK_SYSTEM_MESSAGE_IN_TRANSIT_H_ | 269 #endif // MOJO_EDK_SYSTEM_MESSAGE_IN_TRANSIT_H_ |
OLD | NEW |