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

Unified Diff: mojo/edk/system/core.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/system/core.h
diff --git a/mojo/edk/system/core.h b/mojo/edk/system/core.h
index 65b6933a8bf6130ab5134bf8de7cf53f0f74745d..9c284602f948010bddb09ffee213701a556d0485 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 SetMachPortProviderIfNeeded(base::PortProvider* port_provider);
+
MojoHandle AddDispatcher(scoped_refptr<Dispatcher> dispatcher);
// Adds new dispatchers for non-message-pipe handles received in a message.

Powered by Google App Engine
This is Rietveld 408576698