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

Side by Side Diff: mojo/edk/embedder/system_impl_private_entrypoints.cc

Issue 1783623005: Add mojo/c/system/{time.h,wait.h}. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 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 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 "base/logging.h"
6 #include "mojo/edk/embedder/embedder_internal.h" 6 #include "mojo/edk/embedder/embedder_internal.h"
7 #include "mojo/edk/system/core.h" 7 #include "mojo/edk/system/core.h"
8 #include "mojo/edk/system/dispatcher.h" 8 #include "mojo/edk/system/dispatcher.h"
9 #include "mojo/edk/util/ref_ptr.h" 9 #include "mojo/edk/util/ref_ptr.h"
10 #include "mojo/public/c/system/buffer.h" 10 #include "mojo/public/c/system/buffer.h"
11 #include "mojo/public/c/system/data_pipe.h" 11 #include "mojo/public/c/system/data_pipe.h"
12 #include "mojo/public/c/system/functions.h" 12 #include "mojo/public/c/system/handle.h"
13 #include "mojo/public/c/system/message_pipe.h" 13 #include "mojo/public/c/system/message_pipe.h"
14 #include "mojo/public/c/system/result.h"
15 #include "mojo/public/c/system/time.h"
16 #include "mojo/public/c/system/wait.h"
14 #include "mojo/public/platform/native/system_impl_private.h" 17 #include "mojo/public/platform/native/system_impl_private.h"
15 18
16 using mojo::embedder::internal::g_core; 19 using mojo::embedder::internal::g_core;
17 using mojo::system::Core; 20 using mojo::system::Core;
18 using mojo::system::Dispatcher; 21 using mojo::system::Dispatcher;
19 using mojo::system::MakeUserPointer; 22 using mojo::system::MakeUserPointer;
20 using mojo::util::RefPtr; 23 using mojo::util::RefPtr;
21 24
22 // Definitions of the system functions, but with an explicit parameter for the 25 // Definitions of the system functions, but with an explicit parameter for the
23 // core object rather than using the default singleton. Also includes functions 26 // core object rather than using the default singleton. Also includes functions
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 MakeUserPointer(buffer), flags); 267 MakeUserPointer(buffer), flags);
265 } 268 }
266 269
267 MojoResult MojoSystemImplUnmapBuffer(MojoSystemImpl system, void* buffer) { 270 MojoResult MojoSystemImplUnmapBuffer(MojoSystemImpl system, void* buffer) {
268 mojo::system::Core* core = static_cast<mojo::system::Core*>(system); 271 mojo::system::Core* core = static_cast<mojo::system::Core*>(system);
269 DCHECK(core); 272 DCHECK(core);
270 return core->UnmapBuffer(MakeUserPointer(buffer)); 273 return core->UnmapBuffer(MakeUserPointer(buffer));
271 } 274 }
272 275
273 } // extern "C" 276 } // extern "C"
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698