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

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

Issue 1811433002: [mojo-edk] Expose notification source to MojoWatch callbacks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « ipc/mojo/ipc_mojo_bootstrap.cc ('k') | mojo/public/cpp/bindings/interface_ptr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/binding.h
diff --git a/mojo/public/cpp/bindings/binding.h b/mojo/public/cpp/bindings/binding.h
index 68dd32239c41c3d1682c5ca12303f95bf7f16089..51f569633e551b65d92e3fee0df188def60ecc62 100644
--- a/mojo/public/cpp/bindings/binding.h
+++ b/mojo/public/cpp/bindings/binding.h
@@ -208,6 +208,16 @@ class Binding {
return internal_state_.associated_group();
}
+ // Allows synchronous dispatch for this Binding. When sync dispatch is
yzshen1 2016/03/16 15:38:18 This comment also needs to mention bindings living
+ // allowed, a client on the same thread as this Binding will synchronously
+ // enter the bound implementation when writing messages to its pipe.
+ //
+ // Note that this also allows synchronous dispatch for any endpoints
+ // which are associated with this one and which live on the same thread.
+ void SetAllowSyncDispatch(bool allowed) {
+ internal_state_.SetAllowSyncDispatch(allowed);
+ }
+
// Exposed for testing, should not generally be used.
void EnableTestingMode() { internal_state_.EnableTestingMode(); }
« no previous file with comments | « ipc/mojo/ipc_mojo_bootstrap.cc ('k') | mojo/public/cpp/bindings/interface_ptr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698