Index: mojo/public/python/mojo_bindings/reflection.py |
diff --git a/mojo/public/python/mojo_bindings/reflection.py b/mojo/public/python/mojo_bindings/reflection.py |
index 35b8ff294a16019dc07e16d1d59ea23e6083d457..c9e4ee0017171eaa7eb6d2481354b0b1fe9d8061 100644 |
--- a/mojo/public/python/mojo_bindings/reflection.py |
+++ b/mojo/public/python/mojo_bindings/reflection.py |
@@ -12,6 +12,7 @@ import sys |
import mojo_bindings.messaging as messaging |
import mojo_bindings.promise as promise |
import mojo_bindings.serialization as serialization |
+import mojo_system |
class MojoEnumType(type): |
@@ -273,6 +274,10 @@ class InterfaceManager(object): |
router.Start() |
+ def NewRequest(self): |
+ pipe = mojo_system.MessagePipe() |
+ return (self.Proxy(pipe.handle0), InterfaceRequest(pipe.handle1)) |
+ |
def _InternalProxy(self, router, error_handler): |
if error_handler is None: |
error_handler = _ProxyErrorHandler() |