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

Side by Side Diff: mojo/edk/system/message_in_transit.h

Issue 664763002: Mojo: Change the way message pipes are passed over channels. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « mojo/edk/system/channel.cc ('k') | mojo/edk/system/message_in_transit.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « mojo/edk/system/channel.cc ('k') | mojo/edk/system/message_in_transit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698