| 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/system/shared_buffer_dispatcher.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "mojo/edk/embedder/platform_support.h" | 11 #include "mojo/embedder/platform_support.h" |
| 12 #include "mojo/edk/system/channel.h" | |
| 13 #include "mojo/edk/system/constants.h" | |
| 14 #include "mojo/edk/system/memory.h" | |
| 15 #include "mojo/edk/system/options_validation.h" | |
| 16 #include "mojo/public/c/system/macros.h" | 12 #include "mojo/public/c/system/macros.h" |
| 13 #include "mojo/system/channel.h" |
| 14 #include "mojo/system/constants.h" |
| 15 #include "mojo/system/memory.h" |
| 16 #include "mojo/system/options_validation.h" |
| 17 | 17 |
| 18 namespace mojo { | 18 namespace mojo { |
| 19 namespace system { | 19 namespace system { |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 struct SerializedSharedBufferDispatcher { | 23 struct SerializedSharedBufferDispatcher { |
| 24 size_t num_bytes; | 24 size_t num_bytes; |
| 25 size_t platform_handle_index; | 25 size_t platform_handle_index; |
| 26 }; | 26 }; |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 platform_handles->push_back(platform_handle.release()); | 267 platform_handles->push_back(platform_handle.release()); |
| 268 *actual_size = sizeof(SerializedSharedBufferDispatcher); | 268 *actual_size = sizeof(SerializedSharedBufferDispatcher); |
| 269 | 269 |
| 270 shared_buffer_ = nullptr; | 270 shared_buffer_ = nullptr; |
| 271 | 271 |
| 272 return true; | 272 return true; |
| 273 } | 273 } |
| 274 | 274 |
| 275 } // namespace system | 275 } // namespace system |
| 276 } // namespace mojo | 276 } // namespace mojo |
| OLD | NEW |