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

Unified Diff: services/python/content_handler/python_system_impl_helper.cc

Issue 901203002: Move python content handler to //services/ (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 | « services/python/content_handler/python_system_impl_helper.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/python/content_handler/python_system_impl_helper.cc
diff --git a/mojo/python/content_handler/python_system_impl_helper.cc b/services/python/content_handler/python_system_impl_helper.cc
similarity index 74%
rename from mojo/python/content_handler/python_system_impl_helper.cc
rename to services/python/content_handler/python_system_impl_helper.cc
index 68887e3ad761c6e1ded7469b731c1648284e3864..a48174aecf573d375a9e9c69466b797fc1e32976 100644
--- a/mojo/python/content_handler/python_system_impl_helper.cc
+++ b/services/python/content_handler/python_system_impl_helper.cc
@@ -24,10 +24,12 @@ class QuitCurrentRunLoop : public mojo::Closure::Runnable {
};
} // namespace
-namespace mojo {
+namespace services {
namespace python {
+namespace content_handler {
-PythonRunLoop::PythonRunLoop() : loop_(common::MessagePumpMojo::Create()) {
+PythonRunLoop::PythonRunLoop()
+ : loop_(mojo::common::MessagePumpMojo::Create()) {
}
PythonRunLoop::~PythonRunLoop() {
@@ -46,8 +48,8 @@ void PythonRunLoop::Quit() {
}
void PythonRunLoop::PostDelayedTask(PyObject* callable, MojoTimeTicks delay) {
- Closure::Runnable* quit_runnable =
- NewRunnableFromCallable(callable, loop_.QuitClosure());
+ mojo::Closure::Runnable* quit_runnable =
+ mojo::python::NewRunnableFromCallable(callable, loop_.QuitClosure());
loop_.PostDelayedTask(
FROM_HERE, base::Bind(&mojo::Closure::Run,
@@ -55,10 +57,11 @@ void PythonRunLoop::PostDelayedTask(PyObject* callable, MojoTimeTicks delay) {
base::TimeDelta::FromMicroseconds(delay));
}
-PythonAsyncWaiter* NewAsyncWaiter() {
- return new PythonAsyncWaiter(
+mojo::python::PythonAsyncWaiter* NewAsyncWaiter() {
+ return new mojo::python::PythonAsyncWaiter(
mojo::Closure(QuitCurrentRunLoop::NewInstance()));
}
+} // namespace content_handler
} // namespace python
-} // namespace mojo
+} // namespace services
« no previous file with comments | « services/python/content_handler/python_system_impl_helper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698