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. |