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

Unified Diff: mojo/public/cpp/bindings/binding.h

Issue 868463008: Remove Client relationship between mojo.Shell/mojo.Application (Closed) Base URL: git@github.com:domokit/mojo.git@app_impl_init
Patch Set: fix android Created 5 years, 11 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/public/cpp/bindings/binding.h
diff --git a/mojo/public/cpp/bindings/binding.h b/mojo/public/cpp/bindings/binding.h
index 658b6a07cd052a2a60a7450b80fa89cac4dd1b06..7b663c435232f6e0f214a823de824ed96389a6b1 100644
--- a/mojo/public/cpp/bindings/binding.h
+++ b/mojo/public/cpp/bindings/binding.h
@@ -165,6 +165,13 @@ class Binding : public ErrorHandler {
internal_router_->CloseMessagePipe();
}
+ // Unbinds the underlying pipe from this binding and returns it so it can be
+ // used in another context, such as on another thread or with a different
+ // implementation.
+ InterfaceRequest<Interface> Unbind() {
+ return MakeRequest<Interface>(internal_router_->PassMessagePipe());
+ }
+
// Sets an error handler that will be called if a connection error occurs on
// the bound message pipe.
void set_error_handler(ErrorHandler* error_handler) {

Powered by Google App Engine
This is Rietveld 408576698