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

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

Issue 1367303002: Update includes of mojo/edk to be fully-qualified instead of relative to third_party/mojo/src. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update all include guards Created 5 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
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 "third_party/mojo/src/mojo/edk/system/message_in_transit.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include <ostream> 9 #include <ostream>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "mojo/edk/system/configuration.h" 12 #include "third_party/mojo/src/mojo/edk/system/configuration.h"
13 #include "mojo/edk/system/transport_data.h" 13 #include "third_party/mojo/src/mojo/edk/system/transport_data.h"
14 14
15 namespace mojo { 15 namespace mojo {
16 namespace system { 16 namespace system {
17 17
18 MOJO_STATIC_CONST_MEMBER_DEFINITION const size_t 18 MOJO_STATIC_CONST_MEMBER_DEFINITION const size_t
19 MessageInTransit::kMessageAlignment; 19 MessageInTransit::kMessageAlignment;
20 20
21 struct MessageInTransit::PrivateStructForCompileAsserts { 21 struct MessageInTransit::PrivateStructForCompileAsserts {
22 // The size of |Header| must be a multiple of the alignment. 22 // The size of |Header| must be a multiple of the alignment.
23 static_assert(sizeof(Header) % kMessageAlignment == 0, 23 static_assert(sizeof(Header) % kMessageAlignment == 0,
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 DCHECK_EQ(main_buffer_size_ % kMessageAlignment, 0u); 200 DCHECK_EQ(main_buffer_size_ % kMessageAlignment, 0u);
201 header()->total_size = static_cast<uint32_t>(main_buffer_size_); 201 header()->total_size = static_cast<uint32_t>(main_buffer_size_);
202 if (transport_data_) { 202 if (transport_data_) {
203 header()->total_size += 203 header()->total_size +=
204 static_cast<uint32_t>(transport_data_->buffer_size()); 204 static_cast<uint32_t>(transport_data_->buffer_size());
205 } 205 }
206 } 206 }
207 207
208 } // namespace system 208 } // namespace system
209 } // namespace mojo 209 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698