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

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

Issue 1420533012: EDK: Make mojo::embedder::AsyncWait (etc.) take an std::function instead of a base::Callback. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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/async_waiter.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 c8a47e0f8af3af3c6d0f52f194eeab83afc3d837..7217888f14c81d2b5af980b1cb48083d6c9b0d2a 100644
--- a/mojo/edk/system/core.h
+++ b/mojo/edk/system/core.h
@@ -7,7 +7,8 @@
#include <stdint.h>
-#include "base/callback.h"
+#include <functional>
+
#include "mojo/edk/system/handle_table.h"
#include "mojo/edk/system/mapping_table.h"
#include "mojo/edk/system/memory.h"
@@ -66,7 +67,7 @@ class Core {
// awakable.h. In particular, it must not call any Mojo system functions.
MojoResult AsyncWait(MojoHandle handle,
MojoHandleSignals signals,
- const base::Callback<void(MojoResult)>& callback);
+ const std::function<void(MojoResult)>& callback);
embedder::PlatformSupport* platform_support() const {
return platform_support_;
« no previous file with comments | « mojo/edk/system/async_waiter.cc ('k') | mojo/edk/system/core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698