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

Unified Diff: mojo/python/content_handler/c_base.pxd

Issue 796373006: Content handler for python. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/python/content_handler/c_base.pxd
diff --git a/mojo/python/content_handler/c_base.pxd b/mojo/python/content_handler/c_base.pxd
new file mode 100644
index 0000000000000000000000000000000000000000..95768d0922e7488e4f653cef2797cc24cc28c080
--- /dev/null
+++ b/mojo/python/content_handler/c_base.pxd
@@ -0,0 +1,21 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# distutils: language = c++
+
+from libc.stdint cimport int64_t
+
+cimport c_async_waiter
+
+cdef extern from "mojo/python/content_handler/python_system_impl_helper.h" \
+ namespace "mojo::python" nogil:
+ cdef cppclass PythonRunLoop "mojo::python::PythonRunLoop":
+ PythonRunLoop()
+ void Run()
+ void RunUntilIdle()
+ void Quit()
+ void PostDelayedTask(object, int64_t)
+ cdef c_async_waiter.PythonAsyncWaiter* NewAsyncWaiter()
+
+

Powered by Google App Engine
This is Rietveld 408576698