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

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

Issue 1543603002: Switch to standard integer types in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 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/handle_table.cc ('k') | mojo/edk/system/message_in_transit_queue.h » ('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 #include "mojo/edk/system/message_in_transit.h" 5 #include "mojo/edk/system/message_in_transit.h"
6 6
7 #include <stddef.h>
8 #include <stdint.h>
7 #include <string.h> 9 #include <string.h>
8 #include <ostream> 10 #include <ostream>
9 #include <utility> 11 #include <utility>
10 12
11 #include "base/logging.h" 13 #include "base/logging.h"
12 #include "mojo/edk/system/configuration.h" 14 #include "mojo/edk/system/configuration.h"
13 #include "mojo/edk/system/transport_data.h" 15 #include "mojo/edk/system/transport_data.h"
14 16
15 namespace mojo { 17 namespace mojo {
16 namespace edk { 18 namespace edk {
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 DCHECK_EQ(main_buffer_size_ % kMessageAlignment, 0u); 178 DCHECK_EQ(main_buffer_size_ % kMessageAlignment, 0u);
177 header()->total_size = static_cast<uint32_t>(main_buffer_size_); 179 header()->total_size = static_cast<uint32_t>(main_buffer_size_);
178 if (transport_data_) { 180 if (transport_data_) {
179 header()->total_size += 181 header()->total_size +=
180 static_cast<uint32_t>(transport_data_->buffer_size()); 182 static_cast<uint32_t>(transport_data_->buffer_size());
181 } 183 }
182 } 184 }
183 185
184 } // namespace edk 186 } // namespace edk
185 } // namespace mojo 187 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/handle_table.cc ('k') | mojo/edk/system/message_in_transit_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698