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

Unified Diff: mojo/edk/system/core.h

Issue 795593004: Update mojo sdk to rev cc531b32182099a5a034a99daff35ed5d38a61c8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More workarounds for MSVC Created 6 years 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 | « mojo/edk/system/channel.cc ('k') | mojo/edk/system/core.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/core.h
diff --git a/mojo/edk/system/core.h b/mojo/edk/system/core.h
index 5a3c27bddd39cd22b94050dcc2dad828370bba31..0ff9c01894d7894232e45a29cb5d4018143be376 100644
--- a/mojo/edk/system/core.h
+++ b/mojo/edk/system/core.h
@@ -7,6 +7,7 @@
#include <stdint.h>
+#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
@@ -49,6 +50,14 @@ class MOJO_SYSTEM_IMPL_EXPORT Core {
// invalid.
scoped_refptr<Dispatcher> GetDispatcher(MojoHandle handle);
+ // Watches on the given handle for the given signals, calling |callback| when
+ // a signal is satisfied or when all signals become unsatisfiable. |callback|
+ // must satisfy stringent requirements -- see |Awakable::Awake()| in
+ // awakable.h. In particular, it must not call any Mojo system functions.
+ MojoResult AsyncWait(MojoHandle handle,
+ MojoHandleSignals signals,
+ base::Callback<void(MojoResult)> callback);
+
embedder::PlatformSupport* platform_support() const {
return platform_support_.get();
}
« no previous file with comments | « mojo/edk/system/channel.cc ('k') | mojo/edk/system/core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698