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

Unified Diff: mojo/public/python/src/python_system_helper.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/public/python/src/common.cc ('k') | mojo/public/python/src/python_system_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/python/src/python_system_helper.h
diff --git a/mojo/public/python/src/python_system_helper.h b/mojo/public/python/src/python_system_helper.h
index e0d83ca4b7d827ef5f01bd0b0844d9744854ff12..ff9bb0b2587c693394340015d64ceea8d3b2422a 100644
--- a/mojo/public/python/src/python_system_helper.h
+++ b/mojo/public/python/src/python_system_helper.h
@@ -11,38 +11,18 @@
#include <map>
-#include "mojo/public/c/environment/async_waiter.h"
-#include "mojo/public/c/system/types.h"
#include "mojo/public/cpp/bindings/callback.h"
-#include "mojo/public/cpp/bindings/lib/shared_ptr.h"
+#include "mojo/public/python/src/common.h"
+
namespace mojo {
namespace python {
+// Create a mojo::Closure from a callable python object. If an error occurs
+// while executing callable, the closure will quit the current run loop.
+Closure BuildClosure(PyObject* callable);
-// Create a mojo::Closure from a callable python object.
-mojo::Closure BuildClosure(PyObject* callable);
-
-class PythonAsyncWaiter {
- public:
- PythonAsyncWaiter();
- ~PythonAsyncWaiter();
- MojoAsyncWaitID AsyncWait(MojoHandle handle,
- MojoHandleSignals signals,
- MojoDeadline deadline,
- PyObject* callable);
-
- void CancelWait(MojoAsyncWaitID wait_id);
-
- private:
- class AsyncWaiterRunnable;
-
- typedef std::map<MojoAsyncWaitID,
- internal::SharedPtr<mojo::Callback<void(MojoResult)> > >
- CallbackMap;
-
- CallbackMap callbacks_;
- const MojoAsyncWaiter* async_waiter_;
-};
+// Create a new PythonAsyncWaiter object. Ownership is passed to the caller.
+PythonAsyncWaiter* NewAsyncWaiter();
} // namespace python
} // namespace mojo
« no previous file with comments | « mojo/public/python/src/common.cc ('k') | mojo/public/python/src/python_system_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698