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

Issue 796373006: Content handler for python. (Closed)

Created:
5 years, 11 months ago by etiennej
Modified:
5 years, 11 months ago
Reviewers:
jamesr, qsr
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Content handler for python. This CL includes a content handler for Python, rules to package python applications for Mojo, and an apptest (doubling as an example app) exercising python execution. R=qsr@chromium.org, qsr Committed: https://chromium.googlesource.com/external/mojo/+/0ccbbc18f3ad098797df0f3b23d32aa06c4b0820

Patch Set 1 #

Total comments: 31

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 20

Patch Set 7 : #

Patch Set 8 : #

Total comments: 6

Patch Set 9 : #

Patch Set 10 : #

Total comments: 3

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+700 lines, -41 lines) Patch
M examples/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
A examples/python/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +26 lines, -0 lines 0 comments Download
A examples/python/__mojo__.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +63 lines, -0 lines 0 comments Download
M mojo/public/python/BUILD.gn View 1 2 3 4 5 6 2 chunks +12 lines, -0 lines 0 comments Download
M mojo/public/python/mojo_bindings/reflection.py View 1 2 3 4 5 6 7 8 9 10 5 chunks +16 lines, -7 lines 0 comments Download
A mojo/public/python/rules.gni View 1 2 3 4 5 6 1 chunk +112 lines, -0 lines 0 comments Download
M mojo/public/python/src/common.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M mojo/public/python/src/common.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/mojom_python_generator.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/python_templates/module.py.tmpl View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/tools/bindings/mojom.gni View 1 2 3 4 5 6 7 8 9 10 3 chunks +45 lines, -0 lines 0 comments Download
A + mojo/public/tools/gn/zip.py View 2 chunks +18 lines, -13 lines 0 comments Download
M mojo/python/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A mojo/python/content_handler/BUILD.gn View 1 2 3 4 5 6 1 chunk +70 lines, -0 lines 0 comments Download
A mojo/python/content_handler/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
A mojo/python/content_handler/c_base.pxd View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A mojo/python/content_handler/content_handler_main.cc View 1 2 3 4 5 6 1 chunk +177 lines, -0 lines 0 comments Download
A + mojo/python/content_handler/mojo_system_impl.pyx View 1 2 3 4 2 chunks +6 lines, -21 lines 0 comments Download
A mojo/python/content_handler/python_system_impl_helper.h View 1 2 3 4 5 6 7 1 chunk +45 lines, -0 lines 0 comments Download
A mojo/python/content_handler/python_system_impl_helper.cc View 1 chunk +64 lines, -0 lines 0 comments Download
M mojo/tools/data/apptests View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (1 generated)
etiennej
5 years, 11 months ago (2015-01-07 12:31:18 UTC) #1
etiennej
Changes: - Added a TODO for dynamic loading of python library - Use of *Inittab ...
5 years, 11 months ago (2015-01-07 14:37:24 UTC) #2
qsr
https://codereview.chromium.org/796373006/diff/1/examples/python/BUILD.gn File examples/python/BUILD.gn (right): https://codereview.chromium.org/796373006/diff/1/examples/python/BUILD.gn#newcode1 examples/python/BUILD.gn:1: # Copyright 2014 The Chromium Authors. All rights reserved. ...
5 years, 11 months ago (2015-01-07 15:14:46 UTC) #3
etiennej
https://codereview.chromium.org/796373006/diff/1/examples/python/BUILD.gn File examples/python/BUILD.gn (right): https://codereview.chromium.org/796373006/diff/1/examples/python/BUILD.gn#newcode1 examples/python/BUILD.gn:1: # Copyright 2014 The Chromium Authors. All rights reserved. ...
5 years, 11 months ago (2015-01-08 11:23:13 UTC) #4
etiennej
https://codereview.chromium.org/796373006/diff/1/mojo/python/content_handler/content_handler_main.cc File mojo/python/content_handler/content_handler_main.cc (right): https://codereview.chromium.org/796373006/diff/1/mojo/python/content_handler/content_handler_main.cc#newcode69 mojo/python/content_handler/content_handler_main.cc:69: PyObject* SetupPythonEnvironment(const std::string& application_path) { On 2015/01/08 11:23:13, etiennej ...
5 years, 11 months ago (2015-01-08 17:14:29 UTC) #5
qsr
https://codereview.chromium.org/796373006/diff/100001/examples/python/__mojo__.py File examples/python/__mojo__.py (right): https://codereview.chromium.org/796373006/diff/100001/examples/python/__mojo__.py#newcode10 examples/python/__mojo__.py:10: import example_service_mojom Alphabetize https://codereview.chromium.org/796373006/diff/100001/examples/python/__mojo__.py#newcode12 examples/python/__mojo__.py:12: import mojo_bindings.reflection This is ...
5 years, 11 months ago (2015-01-12 17:37:45 UTC) #6
etiennej
https://codereview.chromium.org/796373006/diff/100001/examples/python/__mojo__.py File examples/python/__mojo__.py (right): https://codereview.chromium.org/796373006/diff/100001/examples/python/__mojo__.py#newcode10 examples/python/__mojo__.py:10: import example_service_mojom On 2015/01/12 17:37:45, qsr wrote: > Alphabetize ...
5 years, 11 months ago (2015-01-14 00:54:04 UTC) #7
qsr
https://codereview.chromium.org/796373006/diff/140001/examples/python/__mojo__.py File examples/python/__mojo__.py (right): https://codereview.chromium.org/796373006/diff/140001/examples/python/__mojo__.py#newcode27 examples/python/__mojo__.py:27: service_provider.AddService(ExampleServiceImpl.manager.name, You do not need to pass 2 parameters ...
5 years, 11 months ago (2015-01-14 18:08:42 UTC) #8
etiennej
https://codereview.chromium.org/796373006/diff/140001/examples/python/__mojo__.py File examples/python/__mojo__.py (right): https://codereview.chromium.org/796373006/diff/140001/examples/python/__mojo__.py#newcode27 examples/python/__mojo__.py:27: service_provider.AddService(ExampleServiceImpl.manager.name, On 2015/01/14 18:08:41, qsr wrote: > You do ...
5 years, 11 months ago (2015-01-15 00:03:07 UTC) #9
qsr
LGTM with nits. https://codereview.chromium.org/796373006/diff/180001/mojo/public/tools/bindings/generators/mojom_python_generator.py File mojo/public/tools/bindings/generators/mojom_python_generator.py (right): https://codereview.chromium.org/796373006/diff/180001/mojo/public/tools/bindings/generators/mojom_python_generator.py#newcode314 mojo/public/tools/bindings/generators/mojom_python_generator.py:314: def GetGlobals(self): Do you need Globas? ...
5 years, 11 months ago (2015-01-15 20:47:33 UTC) #10
etiennej
https://codereview.chromium.org/796373006/diff/180001/mojo/public/tools/bindings/generators/mojom_python_generator.py File mojo/public/tools/bindings/generators/mojom_python_generator.py (right): https://codereview.chromium.org/796373006/diff/180001/mojo/public/tools/bindings/generators/mojom_python_generator.py#newcode314 mojo/public/tools/bindings/generators/mojom_python_generator.py:314: def GetGlobals(self): On 2015/01/15 20:47:33, qsr wrote: > Do ...
5 years, 11 months ago (2015-01-15 20:48:45 UTC) #11
qsr
On 2015/01/15 20:48:45, etiennej wrote: > https://codereview.chromium.org/796373006/diff/180001/mojo/public/tools/bindings/generators/mojom_python_generator.py > File mojo/public/tools/bindings/generators/mojom_python_generator.py (right): > > https://codereview.chromium.org/796373006/diff/180001/mojo/public/tools/bindings/generators/mojom_python_generator.py#newcode314 > ...
5 years, 11 months ago (2015-01-15 20:49:43 UTC) #12
etiennej
https://codereview.chromium.org/796373006/diff/180001/mojo/public/tools/bindings/generators/mojom_python_generator.py File mojo/public/tools/bindings/generators/mojom_python_generator.py (right): https://codereview.chromium.org/796373006/diff/180001/mojo/public/tools/bindings/generators/mojom_python_generator.py#newcode314 mojo/public/tools/bindings/generators/mojom_python_generator.py:314: def GetGlobals(self): On 2015/01/15 20:48:45, etiennej wrote: > On ...
5 years, 11 months ago (2015-01-16 00:38:44 UTC) #13
etiennej
Committed patchset #11 (id:200001) manually as 0ccbbc18f3ad098797df0f3b23d32aa06c4b0820 (presubmit successful).
5 years, 11 months ago (2015-01-16 00:43:30 UTC) #14
jamesr
5 years, 11 months ago (2015-01-16 18:56:13 UTC) #16
Message was sent while issue was closed.
No try runs?  :(

This appears to be making app_tests time out on the linux rel and asan bots:

http://build.chromium.org/p/client.mojo/builders/Mojo%20Linux%20ASan/builds/443
http://build.chromium.org/p/client.mojo/builders/Mojo%20Linux/builds/1037

Powered by Google App Engine
This is Rietveld 408576698