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

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

Issue 2229573002: Change the canonical way to include the C macros.h to <mojo/macros.h>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « mojo/edk/system/options_validation_unittest.cc ('k') | mojo/edk/util/BUILD.gn » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/shared_buffer_dispatcher.h" 5 #include "mojo/edk/system/shared_buffer_dispatcher.h"
6 6
7 #include <mojo/macros.h>
8
7 #include <limits> 9 #include <limits>
8 #include <utility> 10 #include <utility>
9 11
10 #include "base/logging.h" 12 #include "base/logging.h"
11 #include "mojo/edk/embedder/platform_support.h" 13 #include "mojo/edk/embedder/platform_support.h"
12 #include "mojo/edk/platform/platform_shared_buffer.h" 14 #include "mojo/edk/platform/platform_shared_buffer.h"
13 #include "mojo/edk/system/channel.h" 15 #include "mojo/edk/system/channel.h"
14 #include "mojo/edk/system/configuration.h" 16 #include "mojo/edk/system/configuration.h"
15 #include "mojo/edk/system/memory.h" 17 #include "mojo/edk/system/memory.h"
16 #include "mojo/edk/system/options_validation.h" 18 #include "mojo/edk/system/options_validation.h"
17 #include "mojo/public/c/system/macros.h"
18 19
19 using mojo::platform::PlatformSharedBuffer; 20 using mojo::platform::PlatformSharedBuffer;
20 using mojo::platform::PlatformSharedBufferMapping; 21 using mojo::platform::PlatformSharedBufferMapping;
21 using mojo::platform::ScopedPlatformHandle; 22 using mojo::platform::ScopedPlatformHandle;
22 using mojo::util::RefPtr; 23 using mojo::util::RefPtr;
23 24
24 namespace mojo { 25 namespace mojo {
25 namespace system { 26 namespace system {
26 27
27 namespace { 28 namespace {
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 platform_handles->push_back(std::move(platform_handle)); 340 platform_handles->push_back(std::move(platform_handle));
340 *actual_size = sizeof(SerializedSharedBufferDispatcher); 341 *actual_size = sizeof(SerializedSharedBufferDispatcher);
341 342
342 shared_buffer_ = nullptr; 343 shared_buffer_ = nullptr;
343 344
344 return true; 345 return true;
345 } 346 }
346 347
347 } // namespace system 348 } // namespace system
348 } // namespace mojo 349 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/options_validation_unittest.cc ('k') | mojo/edk/util/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698