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

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

Issue 1350023003: Add a Mojo EDK for Chrome that uses one OS pipe per message pipe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: convert remaining MP tests and simplify RawChannel destruction Created 5 years, 3 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 "mojo/edk/embedder/embedder_internal.h" 5 #include "mojo/edk/embedder/embedder_internal.h"
6 #include "mojo/edk/system/core.h" 6 #include "mojo/edk/system/core.h"
7 #include "mojo/edk/system/dispatcher.h" 7 #include "mojo/edk/system/dispatcher.h"
8 #include "mojo/public/c/system/buffer.h" 8 #include "mojo/public/c/system/buffer.h"
9 #include "mojo/public/c/system/data_pipe.h" 9 #include "mojo/public/c/system/data_pipe.h"
10 #include "mojo/public/c/system/functions.h" 10 #include "mojo/public/c/system/functions.h"
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 MakeUserPointer(buffer), flags); 251 MakeUserPointer(buffer), flags);
252 } 252 }
253 253
254 MojoResult MojoSystemImplUnmapBuffer(MojoSystemImpl system, void* buffer) { 254 MojoResult MojoSystemImplUnmapBuffer(MojoSystemImpl system, void* buffer) {
255 mojo::system::Core* core = static_cast<mojo::system::Core*>(system); 255 mojo::system::Core* core = static_cast<mojo::system::Core*>(system);
256 DCHECK(core); 256 DCHECK(core);
257 return core->UnmapBuffer(MakeUserPointer(buffer)); 257 return core->UnmapBuffer(MakeUserPointer(buffer));
258 } 258 }
259 259
260 } // extern "C" 260 } // extern "C"
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698