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

Unified Diff: third_party/mojo/src/mojo/edk/system/core.cc

Issue 929433005: WIP: A couple of more ChannelMojo speedup ideas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build and test fix Created 5 years, 10 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 | « third_party/mojo/src/mojo/edk/system/core.h ('k') | third_party/mojo/src/mojo/edk/system/dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/mojo/src/mojo/edk/system/core.cc
diff --git a/third_party/mojo/src/mojo/edk/system/core.cc b/third_party/mojo/src/mojo/edk/system/core.cc
index 4460088d47fde90a1d5e2905b3614df7ca36b9fb..39fa2f98ea6ed24abe5eb19b42b22e598e5f6e07 100644
--- a/third_party/mojo/src/mojo/edk/system/core.cc
+++ b/third_party/mojo/src/mojo/edk/system/core.cc
@@ -111,6 +111,14 @@ MojoResult Core::AsyncWait(MojoHandle handle,
return rv;
}
+MojoResult Core::SetAsyncMessageCallback(
+ MojoHandle handle,
+ base::Callback<bool(const void*, uint32_t)> callback) {
+ scoped_refptr<Dispatcher> dispatcher = GetDispatcher(handle);
+ DCHECK(dispatcher);
+ return dispatcher->SetAsyncMessageCallback(callback);
+}
+
MojoTimeTicks Core::GetTimeTicksNow() {
return base::TimeTicks::Now().ToInternalValue();
}
« no previous file with comments | « third_party/mojo/src/mojo/edk/system/core.h ('k') | third_party/mojo/src/mojo/edk/system/dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698