Index: mojo/public/cpp/application/connect.h |
diff --git a/mojo/public/cpp/application/connect.h b/mojo/public/cpp/application/connect.h |
index 946ca7df57b84b27ffc61b8d0c05f9bedc0bdd0f..3b3fd9c8a88a961378b417272d56cadbecb4bbc3 100644 |
--- a/mojo/public/cpp/application/connect.h |
+++ b/mojo/public/cpp/application/connect.h |
@@ -63,6 +63,12 @@ inline void ConnectToService(ApplicationConnector* application_connector, |
// passed to any thread) from the shell. |
InterfaceHandle<ApplicationConnector> CreateApplicationConnector(Shell* shell); |
+// Helper for "duplicating" a |ApplicationConnector| (typically, from an |
+// |ApplicationConnectorPtr|, getting another independent |
+// |InterfaceHandle<ApplicationConnector>|). |
+InterfaceHandle<ApplicationConnector> DuplicateApplicationConnector( |
+ ApplicationConnector* application_connector); |
+ |
} // namespace mojo |
#endif // MOJO_PUBLIC_CPP_APPLICATION_CONNECT_H_ |