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

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

Issue 799113004: Update mojo sdk to rev 59145288bae55b0fce4276b017df6a1117bcf00f (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add mojo's ply to checklicenses whitelist Created 6 years 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/local_message_pipe_endpoint.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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « mojo/edk/system/local_message_pipe_endpoint.cc ('k') | mojo/edk/system/message_in_transit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698