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

Unified Diff: mojo/public/cpp/bindings/lib/router.h

Issue 1811433002: [mojo-edk] Expose notification source to MojoWatch callbacks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename 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/router.h
diff --git a/mojo/public/cpp/bindings/lib/router.h b/mojo/public/cpp/bindings/lib/router.h
index 6374f18a59bb4be8b4e9a68091e4d6b0b5748568..78cccc42fe627319fedd735f032bd67f83fbf0b7 100644
--- a/mojo/public/cpp/bindings/lib/router.h
+++ b/mojo/public/cpp/bindings/lib/router.h
@@ -93,6 +93,12 @@ class Router : public MessageReceiverWithResponder {
connector_.ResumeIncomingMethodCallProcessing();
}
+ // See Binding for comments.
+ void EnableImmediateDispatchOfEventsFromSameThread(bool allowed) {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ connector_.EnableImmediateDispatchOfEventsFromSameThread(allowed);
+ }
+
// Sets this object to testing mode.
// In testing mode:
// - the object is more tolerant of unrecognized response messages;

Powered by Google App Engine
This is Rietveld 408576698