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: third_party/mojo/src/mojo/edk/system/message_in_transit.cc

Issue 1019173002: Update mojo sdk to rev 7214b7ec7d27563b2666afad86cf1c5895c56c18 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Keep permission service alive if embedder drops requests Created 5 years, 9 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
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 #include "mojo/edk/system/message_in_transit.h" 5 #include "mojo/edk/system/message_in_transit.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "mojo/edk/system/configuration.h" 11 #include "mojo/edk/system/configuration.h"
12 #include "mojo/edk/system/transport_data.h" 12 #include "mojo/edk/system/transport_data.h"
13 13
14 namespace mojo { 14 namespace mojo {
15 namespace system { 15 namespace system {
16 16
17 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Type 17 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Type
18 MessageInTransit::kTypeEndpointClient;
19 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Type
18 MessageInTransit::kTypeEndpoint; 20 MessageInTransit::kTypeEndpoint;
19 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Type 21 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Type
20 MessageInTransit::kTypeChannel; 22 MessageInTransit::kTypeChannel;
21 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Type 23 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Type
22 MessageInTransit::kTypeRawChannel; 24 MessageInTransit::kTypeRawChannel;
23 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Type 25 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Type
24 MessageInTransit::kTypeConnectionManager; 26 MessageInTransit::kTypeConnectionManager;
25 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Type 27 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Type
26 MessageInTransit::kTypeConnectionManagerAck; 28 MessageInTransit::kTypeConnectionManagerAck;
27 29
28 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Subtype 30 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Subtype
29 MessageInTransit::kSubtypeEndpointData; 31 MessageInTransit::kSubtypeEndpointClientData;
30 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Subtype 32 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Subtype
31 MessageInTransit::kSubtypeEndpointDataPipeAck; 33 MessageInTransit::kSubtypeEndpointClientDataPipeAck;
32 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Subtype 34 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Subtype
33 MessageInTransit::kSubtypeChannelAttachAndRunEndpoint; 35 MessageInTransit::kSubtypeChannelAttachAndRunEndpoint;
34 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Subtype 36 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Subtype
35 MessageInTransit::kSubtypeChannelRemoveEndpoint; 37 MessageInTransit::kSubtypeChannelRemoveEndpoint;
36 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Subtype 38 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Subtype
37 MessageInTransit::kSubtypeChannelRemoveEndpointAck; 39 MessageInTransit::kSubtypeChannelRemoveEndpointAck;
38 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Subtype 40 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Subtype
39 MessageInTransit::kSubtypeRawChannelPosixExtraPlatformHandles; 41 MessageInTransit::kSubtypeRawChannelPosixExtraPlatformHandles;
40 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Subtype 42 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::Subtype
41 MessageInTransit::kSubtypeConnectionManagerAllowConnect; 43 MessageInTransit::kSubtypeConnectionManagerAllowConnect;
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 DCHECK_EQ(main_buffer_size_ % kMessageAlignment, 0u); 234 DCHECK_EQ(main_buffer_size_ % kMessageAlignment, 0u);
233 header()->total_size = static_cast<uint32_t>(main_buffer_size_); 235 header()->total_size = static_cast<uint32_t>(main_buffer_size_);
234 if (transport_data_) { 236 if (transport_data_) {
235 header()->total_size += 237 header()->total_size +=
236 static_cast<uint32_t>(transport_data_->buffer_size()); 238 static_cast<uint32_t>(transport_data_->buffer_size());
237 } 239 }
238 } 240 }
239 241
240 } // namespace system 242 } // namespace system
241 } // namespace mojo 243 } // namespace mojo
OLDNEW
« no previous file with comments | « third_party/mojo/src/mojo/edk/system/message_in_transit.h ('k') | third_party/mojo/src/mojo/edk/system/message_pipe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698