OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "base/logging.h" |
5 #include "mojo/edk/embedder/embedder_internal.h" | 6 #include "mojo/edk/embedder/embedder_internal.h" |
6 #include "mojo/edk/system/core.h" | 7 #include "mojo/edk/system/core.h" |
7 #include "mojo/edk/system/dispatcher.h" | 8 #include "mojo/edk/system/dispatcher.h" |
8 #include "mojo/edk/system/ref_ptr.h" | 9 #include "mojo/edk/system/ref_ptr.h" |
9 #include "mojo/public/c/system/buffer.h" | 10 #include "mojo/public/c/system/buffer.h" |
10 #include "mojo/public/c/system/data_pipe.h" | 11 #include "mojo/public/c/system/data_pipe.h" |
11 #include "mojo/public/c/system/functions.h" | 12 #include "mojo/public/c/system/functions.h" |
12 #include "mojo/public/c/system/message_pipe.h" | 13 #include "mojo/public/c/system/message_pipe.h" |
13 #include "mojo/public/platform/native/system_impl_private.h" | 14 #include "mojo/public/platform/native/system_impl_private.h" |
14 | 15 |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 MakeUserPointer(buffer), flags); | 254 MakeUserPointer(buffer), flags); |
254 } | 255 } |
255 | 256 |
256 MojoResult MojoSystemImplUnmapBuffer(MojoSystemImpl system, void* buffer) { | 257 MojoResult MojoSystemImplUnmapBuffer(MojoSystemImpl system, void* buffer) { |
257 mojo::system::Core* core = static_cast<mojo::system::Core*>(system); | 258 mojo::system::Core* core = static_cast<mojo::system::Core*>(system); |
258 DCHECK(core); | 259 DCHECK(core); |
259 return core->UnmapBuffer(MakeUserPointer(buffer)); | 260 return core->UnmapBuffer(MakeUserPointer(buffer)); |
260 } | 261 } |
261 | 262 |
262 } // extern "C" | 263 } // extern "C" |
OLD | NEW |