Skip to content

Commit

Permalink
[Mojo Lite] Expose closeBindings method in interfaces.
Browse files Browse the repository at this point in the history
This CL exposes a way to close bindings on an interface so that the
client can explicitly disconnect and stop receiving messages.

Change-Id: I322f4e41d5522fe8aa7ba9b4a1eb702607281dfe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1636850
Reviewed-by: Ken Rockot <rockot@google.com>
Commit-Queue: Azeem Arshad <azeemarshad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#664795}
  • Loading branch information
Azeem Arshad authored and Commit Bot committed May 30, 2019
1 parent 5c6d493 commit 99b15fe
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,15 @@ goog.provide('{{module.namespace}}.{{interface.name}}Request');
this.target_.bindHandle(handle);
}

/**
* Closes all bindings bound to this target.
*
* @export
*/
closeBindings() {
this.target_.closeBindings();
}

/**
* Returns a proxy for this interface which sends messages to the browser.
* The browser must have an interface request binder registered for this
Expand Down

0 comments on commit 99b15fe

Please sign in to comment.