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

Issue 816113004: Dart: Adds a content handler and a test. (Closed)

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

Description

Dart: Adds a content handler and a test. This CL also: - Adds Application, and ServiceProvider classes to the bindings library. These are also added to the embedder's snapshot, which requires also adding the generated bindings for application.mojom and service_provider.mojom to the snapshot. - Adds a class to drain a data pipe to support the example under //examples/dart/wget.dart. BUG= R=abarth@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/d409c4096514d14456f2d39a5a22de6cd78a9ec0

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 9

Patch Set 5 : Merge #

Patch Set 6 : Merge CLs that address comments #

Total comments: 10

Patch Set 7 : Split off application library under //services/dart #

Patch Set 8 : small fixes #

Patch Set 9 : #

Patch Set 10 : comment #

Total comments: 26

Patch Set 11 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+687 lines, -148 lines) Patch
A examples/dart/wget.dart View 1 2 3 4 5 6 7 8 9 10 1 chunk +79 lines, -0 lines 0 comments Download
M mojo/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -1 line 0 comments Download
M mojo/dart/embedder/BUILD.gn View 1 2 3 4 5 6 2 chunks +1 line, -71 lines 0 comments Download
M mojo/dart/embedder/dart_controller.cc View 1 2 3 4 5 6 7 8 9 5 chunks +19 lines, -11 lines 0 comments Download
D mojo/dart/embedder/snapshot.dart View 1 2 3 4 5 6 1 chunk +0 lines, -15 lines 0 comments Download
M mojo/dart/embedder/test/BUILD.gn View 1 2 3 4 5 6 2 chunks +85 lines, -2 lines 0 comments Download
M mojo/dart/embedder/test/dart_to_cpp_tests.dart View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A + mojo/dart/embedder/test/test_snapshot.dart View 1 2 3 4 5 6 0 chunks +-1 lines, --1 lines 0 comments Download
M mojo/public/dart/bindings.dart View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M mojo/public/dart/core.dart View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A mojo/public/dart/src/drain_data.dart View 1 2 3 4 5 1 chunk +68 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/dart_templates/interface_definition.tmpl 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/mojom_dart_generator.py View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
A mojo/tools/data/dart_apptests View 1 chunk +8 lines, -0 lines 0 comments Download
M mojo/tools/get_test_list.py View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M services/BUILD.gn View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
A + services/dart/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 7 chunks +56 lines, -19 lines 0 comments Download
A + services/dart/content_handler_main.cc View 1 2 3 4 5 6 2 chunks +11 lines, -17 lines 0 comments Download
A services/dart/dart_app.h View 1 2 3 4 5 6 7 1 chunk +37 lines, -0 lines 0 comments Download
A services/dart/dart_app.cc View 1 2 3 4 5 6 7 1 chunk +73 lines, -0 lines 0 comments Download
A services/dart/echo_apptest.cc View 1 2 1 chunk +88 lines, -0 lines 0 comments Download
A services/dart/lib/application.dart View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
A services/dart/lib/src/application.dart View 1 2 3 4 5 6 7 8 9 10 1 chunk +55 lines, -0 lines 0 comments Download
A services/dart/lib/src/service_provider.dart View 1 2 3 4 5 6 1 chunk +19 lines, -0 lines 0 comments Download
A + services/dart/snapshot.dart View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A + services/dart/test/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -8 lines 0 comments Download
A services/dart/test/echo.dart View 1 2 3 4 5 6 1 chunk +49 lines, -0 lines 0 comments Download
A + services/dart/test/echo_service.mojom View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (1 generated)
zra
5 years, 11 months ago (2015-01-09 22:37:03 UTC) #2
abarth-chromium
This is exciting!! Yeah, lets talk in person on Monday. https://codereview.chromium.org/816113004/diff/60001/mojo/public/dart/src/application.dart File mojo/public/dart/src/application.dart (right): https://codereview.chromium.org/816113004/diff/60001/mojo/public/dart/src/application.dart#newcode30 ...
5 years, 11 months ago (2015-01-10 04:46:25 UTC) #3
zra
After our discussion on Monday, I think it will probably make sense to address a ...
5 years, 11 months ago (2015-01-14 18:08:06 UTC) #4
zra
https://codereview.chromium.org/816113004/diff/60001/mojo/public/tools/bindings/generators/dart_templates/module.lib.tmpl File mojo/public/tools/bindings/generators/dart_templates/module.lib.tmpl (right): https://codereview.chromium.org/816113004/diff/60001/mojo/public/tools/bindings/generators/dart_templates/module.lib.tmpl#newcode17 mojo/public/tools/bindings/generators/dart_templates/module.lib.tmpl:17: import 'dart:mojo_shell' as shell; On 2015/01/10 04:46:25, abarth wrote: ...
5 years, 11 months ago (2015-01-14 22:47:59 UTC) #5
zra
https://codereview.chromium.org/816113004/diff/60001/mojo/public/dart/src/application.dart File mojo/public/dart/src/application.dart (right): https://codereview.chromium.org/816113004/diff/60001/mojo/public/dart/src/application.dart#newcode30 mojo/public/dart/src/application.dart:30: String requestorUrl, core.MojoHandle serviceProviderHandle) { On 2015/01/10 04:46:25, abarth ...
5 years, 11 months ago (2015-01-16 00:33:40 UTC) #6
abarth-chromium
This looks great. The one issue is that you're including shell and application and service ...
5 years, 11 months ago (2015-01-16 05:43:43 UTC) #7
zra
PTAL I've moved the Application and ServiceProvider classes into their own library under //service/dart/lib. Also, ...
5 years, 11 months ago (2015-01-16 17:54:51 UTC) #8
abarth-chromium
LGTM Below are some notes about things to think about for future CLs. None of ...
5 years, 11 months ago (2015-01-18 22:19:02 UTC) #9
zra
Thanks! https://codereview.chromium.org/816113004/diff/180001/mojo/public/dart/src/drain_data.dart File mojo/public/dart/src/drain_data.dart (right): https://codereview.chromium.org/816113004/diff/180001/mojo/public/dart/src/drain_data.dart#newcode7 mojo/public/dart/src/drain_data.dart:7: class DataPipeDrainer { On 2015/01/18 22:19:01, abarth wrote: ...
5 years, 11 months ago (2015-01-20 17:36:51 UTC) #10
zra
5 years, 11 months ago (2015-01-20 17:44:33 UTC) #11
Message was sent while issue was closed.
Committed patchset #11 (id:200001) manually as
d409c4096514d14456f2d39a5a22de6cd78a9ec0 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698