| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // Messages that are consumed by the |Channel|. | 49 // Messages that are consumed by the |Channel|. |
| 50 static const Type kTypeChannel = 1; | 50 static const Type kTypeChannel = 1; |
| 51 // Messages that are consumed by the |RawChannel| (implementation). | 51 // Messages that are consumed by the |RawChannel| (implementation). |
| 52 static const Type kTypeRawChannel = 2; | 52 static const Type kTypeRawChannel = 2; |
| 53 | 53 |
| 54 typedef uint16_t Subtype; | 54 typedef uint16_t Subtype; |
| 55 // Subtypes for type |kTypeEndpoint|: | 55 // Subtypes for type |kTypeEndpoint|: |
| 56 static const Subtype kSubtypeEndpointData = 0; | 56 static const Subtype kSubtypeEndpointData = 0; |
| 57 // Subtypes for type |kTypeChannel|: | 57 // Subtypes for type |kTypeChannel|: |
| 58 static const Subtype kSubtypeChannelAttachAndRunEndpoint = 0; | 58 static const Subtype kSubtypeChannelAttachAndRunEndpoint = 0; |
| 59 static const Subtype kSubtypeChannelRemoveMessagePipeEndpoint = 1; | 59 static const Subtype kSubtypeChannelRemoveEndpoint = 1; |
| 60 static const Subtype kSubtypeChannelRemoveMessagePipeEndpointAck = 2; | 60 static const Subtype kSubtypeChannelRemoveEndpointAck = 2; |
| 61 | 61 |
| 62 // Subtypes for type |kTypeRawChannel|: | 62 // Subtypes for type |kTypeRawChannel|: |
| 63 static const Subtype kSubtypeRawChannelPosixExtraPlatformHandles = 0; | 63 static const Subtype kSubtypeRawChannelPosixExtraPlatformHandles = 0; |
| 64 | 64 |
| 65 // Messages (the header and data) must always be aligned to a multiple of this | 65 // Messages (the header and data) must always be aligned to a multiple of this |
| 66 // quantity (which must be a power of 2). | 66 // quantity (which must be a power of 2). |
| 67 static const size_t kMessageAlignment = 8; | 67 static const size_t kMessageAlignment = 8; |
| 68 | 68 |
| 69 // Forward-declare |Header| so that |View| can use it: | 69 // Forward-declare |Header| so that |View| can use it: |
| 70 private: | 70 private: |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 // some reason.) | 256 // some reason.) |
| 257 scoped_ptr<DispatcherVector> dispatchers_; | 257 scoped_ptr<DispatcherVector> dispatchers_; |
| 258 | 258 |
| 259 DISALLOW_COPY_AND_ASSIGN(MessageInTransit); | 259 DISALLOW_COPY_AND_ASSIGN(MessageInTransit); |
| 260 }; | 260 }; |
| 261 | 261 |
| 262 } // namespace system | 262 } // namespace system |
| 263 } // namespace mojo | 263 } // namespace mojo |
| 264 | 264 |
| 265 #endif // MOJO_EDK_SYSTEM_MESSAGE_IN_TRANSIT_H_ | 265 #endif // MOJO_EDK_SYSTEM_MESSAGE_IN_TRANSIT_H_ |
| OLD | NEW |