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

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

Issue 1423713009: EDK: Move ref counting classes to mojo/edk/util. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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/embedder/embedder.cc ('k') | mojo/edk/system/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 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/system/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/functions.h"
13 #include "mojo/public/c/system/message_pipe.h" 13 #include "mojo/public/c/system/message_pipe.h"
14 #include "mojo/public/platform/native/system_impl_private.h" 14 #include "mojo/public/platform/native/system_impl_private.h"
15 15
16 using mojo::embedder::internal::g_core; 16 using mojo::embedder::internal::g_core;
17 using mojo::system::Core; 17 using mojo::system::Core;
18 using mojo::system::Dispatcher; 18 using mojo::system::Dispatcher;
19 using mojo::system::MakeUserPointer; 19 using mojo::system::MakeUserPointer;
20 using mojo::system::RefPtr; 20 using mojo::util::RefPtr;
21 21
22 // Definitions of the system functions, but with an explicit parameter for the 22 // Definitions of the system functions, but with an explicit parameter for the
23 // core object rather than using the default singleton. Also includes functions 23 // core object rather than using the default singleton. Also includes functions
24 // for manipulating core objects. 24 // for manipulating core objects.
25 extern "C" { 25 extern "C" {
26 26
27 MojoSystemImpl MojoSystemImplGetDefaultImpl() { 27 MojoSystemImpl MojoSystemImplGetDefaultImpl() {
28 return static_cast<MojoSystemImpl>(g_core); 28 return static_cast<MojoSystemImpl>(g_core);
29 } 29 }
30 30
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 MakeUserPointer(buffer), flags); 254 MakeUserPointer(buffer), flags);
255 } 255 }
256 256
257 MojoResult MojoSystemImplUnmapBuffer(MojoSystemImpl system, void* buffer) { 257 MojoResult MojoSystemImplUnmapBuffer(MojoSystemImpl system, void* buffer) {
258 mojo::system::Core* core = static_cast<mojo::system::Core*>(system); 258 mojo::system::Core* core = static_cast<mojo::system::Core*>(system);
259 DCHECK(core); 259 DCHECK(core);
260 return core->UnmapBuffer(MakeUserPointer(buffer)); 260 return core->UnmapBuffer(MakeUserPointer(buffer));
261 } 261 }
262 262
263 } // extern "C" 263 } // extern "C"
OLDNEW
« no previous file with comments | « mojo/edk/embedder/embedder.cc ('k') | mojo/edk/system/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698