| 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 #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 Loading... |
| 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 |
| OLD | NEW |