summaryrefslogtreecommitdiffstats
path: root/mojo/edk/system/core.h
diff options
context:
space:
mode:
authoramistry <amistry@chromium.org>2016-03-16 17:53:46 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-17 00:54:57 +0000
commitba362cd27ec5b4410bd992daccc88a164988384a (patch)
tree8c4ef53df62869d9e4e79458c605da15af1d9344 /mojo/edk/system/core.h
parent2668bea689fd4a5ce07011903bca095aaf67bb07 (diff)
downloadchromium_src-ba362cd27ec5b4410bd992daccc88a164988384a.zip
chromium_src-ba362cd27ec5b4410bd992daccc88a164988384a.tar.gz
chromium_src-ba362cd27ec5b4410bd992daccc88a164988384a.tar.bz2
[mojo-edk] Add support for transferring mach ports.
This change adds the ability to transfer mach ports over Mojo. Mach ports can either be wrapped using CreatePlatformHandleWrapper() or a Mojo shared buffer can be created using CreateSharedBufferWrapper(). For now, Mojo shared buffers created using MojoCreateSharedBuffer() (or MojoCreateDataPipe()) will still use posix shared memory. BUG=582468 Review URL: https://codereview.chromium.org/1712143002 Cr-Commit-Position: refs/heads/master@{#381615}
Diffstat (limited to 'mojo/edk/system/core.h')
-rw-r--r--mojo/edk/system/core.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/mojo/edk/system/core.h b/mojo/edk/system/core.h
index 11aff94..18da0ba 100644
--- a/mojo/edk/system/core.h
+++ b/mojo/edk/system/core.h
@@ -27,6 +27,10 @@
#include "mojo/public/c/system/types.h"
#include "mojo/public/cpp/system/message_pipe.h"
+namespace base {
+class PortProvider;
+}
+
namespace mojo {
namespace edk {
@@ -67,6 +71,9 @@ class MOJO_SYSTEM_IMPL_EXPORT Core {
// associated with |token|.
ScopedMessagePipeHandle CreateChildMessagePipe(const std::string& token);
+ // Sets the mach port provider for this process.
+ void SetMachPortProvider(base::PortProvider* port_provider);
+
MojoHandle AddDispatcher(scoped_refptr<Dispatcher> dispatcher);
// Adds new dispatchers for non-message-pipe handles received in a message.