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

Unified Diff: mojo/edk/embedder/embedder.h

Issue 1712143002: [mojo-edk] Add support for transferring mach ports. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More stuff. 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 side-by-side diff with in-line comments
Download patch
Index: mojo/edk/embedder/embedder.h
diff --git a/mojo/edk/embedder/embedder.h b/mojo/edk/embedder/embedder.h
index 95b3b219be910bcce3d9b871d0659a47355ec8fb..d2133109b7dd557e4ad42e56d18f6aeeac8f0dd3 100644
--- a/mojo/edk/embedder/embedder.h
+++ b/mojo/edk/embedder/embedder.h
@@ -20,6 +20,10 @@
#include "mojo/edk/system/system_impl_export.h"
#include "mojo/public/cpp/system/message_pipe.h"
+namespace base {
+class PortProvider;
+}
+
namespace mojo {
namespace edk {
@@ -134,6 +138,15 @@ MOJO_SYSTEM_IMPL_EXPORT void InitIPCSupport(
// |OnShutdownComplete()| method is invoked.
MOJO_SYSTEM_IMPL_EXPORT void ShutdownIPCSupport();
+#if defined(OS_MACOSX) && !defined(OS_IOS)
+// Set the |base::PortProvider| for this process, if not already set. Can be
+// called on any thread, but must be set in the root process before any mach
erikchen 2016/03/09 19:13:17 s/mach/Mach Mach is a proper noun.
Anand Mistry (off Chromium) 2016/03/11 07:44:17 Done.
+// ports can be transferred. It is safe to call this multiple times, as long as
+// the same port provider is used every time.
+MOJO_SYSTEM_IMPL_EXPORT void SetMachPortProviderIfNeeded(
+ base::PortProvider* port_provider);
+#endif
+
// Creates a message pipe over an arbitrary platform channel. The other end of
// the channel must also be passed to this function. Either endpoint can be in
// any process.

Powered by Google App Engine
This is Rietveld 408576698