| OLD | NEW |
| 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 <limits> | 7 #include <limits> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "mojo/edk/embedder/platform_support.h" | 11 #include "mojo/edk/embedder/platform_support.h" |
| 12 #include "mojo/edk/system/channel.h" | 12 #include "mojo/edk/system/channel.h" |
| 13 #include "mojo/edk/system/configuration.h" | 13 #include "mojo/edk/system/configuration.h" |
| 14 #include "mojo/edk/system/memory.h" | 14 #include "mojo/edk/system/memory.h" |
| 15 #include "mojo/edk/system/options_validation.h" | 15 #include "mojo/edk/system/options_validation.h" |
| 16 #include "mojo/public/c/system/macros.h" | 16 #include "mojo/public/c/system/macros.h" |
| 17 | 17 |
| 18 using mojo::embedder::ScopedPlatformHandle; | 18 using mojo::platform::ScopedPlatformHandle; |
| 19 using mojo::util::RefPtr; | 19 using mojo::util::RefPtr; |
| 20 | 20 |
| 21 namespace mojo { | 21 namespace mojo { |
| 22 namespace system { | 22 namespace system { |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 struct MOJO_ALIGNAS(8) SerializedSharedBufferDispatcher { | 26 struct MOJO_ALIGNAS(8) SerializedSharedBufferDispatcher { |
| 27 uint64_t num_bytes; | 27 uint64_t num_bytes; |
| 28 uint32_t platform_handle_index; | 28 uint32_t platform_handle_index; |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 platform_handles->push_back(std::move(platform_handle)); | 290 platform_handles->push_back(std::move(platform_handle)); |
| 291 *actual_size = sizeof(SerializedSharedBufferDispatcher); | 291 *actual_size = sizeof(SerializedSharedBufferDispatcher); |
| 292 | 292 |
| 293 shared_buffer_ = nullptr; | 293 shared_buffer_ = nullptr; |
| 294 | 294 |
| 295 return true; | 295 return true; |
| 296 } | 296 } |
| 297 | 297 |
| 298 } // namespace system | 298 } // namespace system |
| 299 } // namespace mojo | 299 } // namespace mojo |
| OLD | NEW |