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

Unified Diff: mojo/public/cpp/bindings/lib/binding_state.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
Index: mojo/public/cpp/bindings/lib/binding_state.h
diff --git a/mojo/public/cpp/bindings/lib/binding_state.h b/mojo/public/cpp/bindings/lib/binding_state.h
index feef835be10fa89802fb2558fff4e44faac61fab..1288ad87c15a2ec677ee3fb4204bf7291b6d5529 100644
--- a/mojo/public/cpp/bindings/lib/binding_state.h
+++ b/mojo/public/cpp/bindings/lib/binding_state.h
@@ -106,6 +106,11 @@ class BindingState<Interface, false> {
AssociatedGroup* associated_group() { return nullptr; }
+ void SetAllowSyncDispatch(bool allowed) {
+ DCHECK(is_bound());
+ router_->SetAllowSyncDispatch(allowed);
+ }
+
void EnableTestingMode() {
DCHECK(is_bound());
router_->EnableTestingMode();
@@ -209,6 +214,11 @@ class BindingState<Interface, true> {
return endpoint_client_ ? endpoint_client_->associated_group() : nullptr;
}
+ void SetAllowSyncDispatch(bool allowed) {
+ DCHECK(is_bound());
+ router_->SetAllowSyncDispatch(allowed);
+ }
+
void EnableTestingMode() {
DCHECK(is_bound());
router_->EnableTestingMode();

Powered by Google App Engine
This is Rietveld 408576698