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

Issue 943053003: Simple multi-url support for mojo apps (Closed)

Created:
5 years, 9 months ago by Aaron Boodman
Modified:
5 years, 9 months ago
Reviewers:
jamesr, qsr
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, yzshen+watch_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Simple multi-url support for mojo apps. This patch makes it so that querystrings are no longer considered part of a mojo application's identity. So if you connect to http://a?foo, then http://a?bar, you'll end up talking to the same application, just two different connections. The URL of each connection is sent to the app via a new param in AcceptConnection(). This patch also adds some app tests that exercise http app loading, which wasn't tested before. R=qsr@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/b34bcbff38cb0151c7c0048c0d46b638bdc0074e

Patch Set 1 #

Patch Set 2 : #

Total comments: 13

Patch Set 3 : hate #

Total comments: 19

Patch Set 4 : #

Total comments: 3

Patch Set 5 : #

Patch Set 6 : rebase + fix android #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+471 lines, -73 lines) Patch
M examples/android/src/org/chromium/examples/android/App.java View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M examples/content_handler_demo/content_handler_demo.cc View 3 1 chunk +6 lines, -3 lines 0 comments Download
M examples/forwarding_content_handler/forwarding_content_handler.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M mojo/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/cpp/application/application_connection.h View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M mojo/public/cpp/application/application_impl.h View 1 chunk +2 lines, -1 line 0 comments Download
M mojo/public/cpp/application/lib/application_impl.cc View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M mojo/public/cpp/application/lib/application_test_base.cc View 1 chunk +2 lines, -1 line 0 comments Download
M mojo/public/cpp/application/lib/service_registry.h View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M mojo/public/cpp/application/lib/service_registry.cc View 1 2 3 2 chunks +9 lines, -3 lines 0 comments Download
M mojo/public/dart/src/application.dart View 1 2 3 3 chunks +12 lines, -15 lines 0 comments Download
M mojo/public/interfaces/application/application.mojom View 1 2 3 2 chunks +16 lines, -3 lines 0 comments Download
M mojo/public/interfaces/application/shell.mojom View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/python/mojo_application/application_impl.py View 1 2 3 1 chunk +2 lines, -1 line 1 comment Download
M mojo/tools/data/apptests View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M shell/BUILD.gn View 1 2 chunks +30 lines, -0 lines 0 comments Download
M shell/application_manager/application_manager.h View 1 2 3 4 5 3 chunks +7 lines, -3 lines 0 comments Download
M shell/application_manager/application_manager.cc View 1 2 3 4 5 10 chunks +32 lines, -17 lines 0 comments Download
M shell/application_manager/local_fetcher.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M shell/application_manager/local_fetcher.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M shell/application_manager/shell_impl.h View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M shell/application_manager/shell_impl.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M shell/external_application_listener_unittest.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A shell/shell_apptest.cc View 1 2 3 4 5 1 chunk +202 lines, -0 lines 0 comments Download
A shell/test/BUILD.gn View 1 chunk +28 lines, -0 lines 0 comments Download
A + shell/test/pingable.mojom View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
A shell/test/pingable_app.cc View 1 2 3 1 chunk +69 lines, -0 lines 0 comments Download
M sky/viewer/content_handler_impl.cc View 4 chunks +4 lines, -5 lines 0 comments Download

Messages

Total messages: 20 (8 generated)
Aaron Boodman
5 years, 9 months ago (2015-02-27 14:03:22 UTC) #5
qsr
First pass, as we discussed. https://codereview.chromium.org/943053003/diff/80001/examples/forwarding_content_handler/forwarding_content_handler.cc File examples/forwarding_content_handler/forwarding_content_handler.cc (right): https://codereview.chromium.org/943053003/diff/80001/examples/forwarding_content_handler/forwarding_content_handler.cc#newcode25 examples/forwarding_content_handler/forwarding_content_handler.cc:25: std::string target_url) I don't ...
5 years, 9 months ago (2015-02-27 15:01:41 UTC) #6
Aaron Boodman
ptal haven't actually exercised the new url field yet though. https://codereview.chromium.org/943053003/diff/80001/examples/forwarding_content_handler/forwarding_content_handler.cc File examples/forwarding_content_handler/forwarding_content_handler.cc (right): https://codereview.chromium.org/943053003/diff/80001/examples/forwarding_content_handler/forwarding_content_handler.cc#newcode25 ...
5 years, 9 months ago (2015-02-27 16:54:45 UTC) #7
qsr
https://codereview.chromium.org/943053003/diff/100001/mojo/public/dart/src/application.dart File mojo/public/dart/src/application.dart (right): https://codereview.chromium.org/943053003/diff/100001/mojo/public/dart/src/application.dart#newcode38 mojo/public/dart/src/application.dart:38: _application._acceptConnection(requestorUrl, services, exposedServices); Don't know if you want to ...
5 years, 9 months ago (2015-02-27 17:15:59 UTC) #8
qsr
https://codereview.chromium.org/943053003/diff/100001/shell/application_manager/application_manager.cc File shell/application_manager/application_manager.cc (right): https://codereview.chromium.org/943053003/diff/100001/shell/application_manager/application_manager.cc#newcode127 shell/application_manager/application_manager.cc:127: GURL mapped_url = delegate_->ResolveMappings(requested_url); Don't you need to modify ...
5 years, 9 months ago (2015-02-27 17:17:43 UTC) #9
Aaron Boodman
https://codereview.chromium.org/943053003/diff/100001/mojo/public/dart/src/application.dart File mojo/public/dart/src/application.dart (right): https://codereview.chromium.org/943053003/diff/100001/mojo/public/dart/src/application.dart#newcode38 mojo/public/dart/src/application.dart:38: _application._acceptConnection(requestorUrl, services, exposedServices); On 2015/02/27 17:15:58, qsr wrote: > ...
5 years, 9 months ago (2015-02-28 19:08:23 UTC) #10
qsr
https://codereview.chromium.org/943053003/diff/100001/shell/application_manager/application_manager.cc File shell/application_manager/application_manager.cc (right): https://codereview.chromium.org/943053003/diff/100001/shell/application_manager/application_manager.cc#newcode127 shell/application_manager/application_manager.cc:127: GURL mapped_url = delegate_->ResolveMappings(requested_url); On 2015/02/28 19:08:23, Aaron Boodman ...
5 years, 9 months ago (2015-03-02 08:51:31 UTC) #14
Aaron Boodman
https://codereview.chromium.org/943053003/diff/100001/shell/application_manager/application_manager.cc File shell/application_manager/application_manager.cc (right): https://codereview.chromium.org/943053003/diff/100001/shell/application_manager/application_manager.cc#newcode127 shell/application_manager/application_manager.cc:127: GURL mapped_url = delegate_->ResolveMappings(requested_url); On 2015/03/02 08:51:31, qsr wrote: ...
5 years, 9 months ago (2015-03-02 15:36:36 UTC) #15
qsr
lgtm
5 years, 9 months ago (2015-03-02 15:50:24 UTC) #16
Aaron Boodman
Committed patchset #6 (id:220001) manually as b34bcbff38cb0151c7c0048c0d46b638bdc0074e.
5 years, 9 months ago (2015-03-02 18:05:39 UTC) #17
jamesr
https://codereview.chromium.org/943053003/diff/220001/mojo/public/python/mojo_application/application_impl.py File mojo/public/python/mojo_application/application_impl.py (right): https://codereview.chromium.org/943053003/diff/220001/mojo/public/python/mojo_application/application_impl.py#newcode30 mojo/public/python/mojo_application/application_impl.py:30: resolved_url): pylint complains that this is unused when I ...
5 years, 9 months ago (2015-03-05 20:24:01 UTC) #19
qsr
5 years, 9 months ago (2015-03-06 16:46:35 UTC) #20
Message was sent while issue was closed.
On 2015/03/05 20:24:01, jamesr wrote:
>
https://codereview.chromium.org/943053003/diff/220001/mojo/public/python/mojo...
> File mojo/public/python/mojo_application/application_impl.py (right):
> 
>
https://codereview.chromium.org/943053003/diff/220001/mojo/public/python/mojo...
> mojo/public/python/mojo_application/application_impl.py:30: resolved_url):
> pylint complains that this is unused when I upload unrelated patches:
> 
> Running presubmit upload checks ...
> 
> ** Presubmit Warnings **
> Pylint (111 files) (9.69s) failed
> ************* Module mojo_application.application_impl
> W: 30,23: Unused argument 'resolved_url' (unused-argument)
> 
> What's the right way to silence this?  Should I simply omit this param or give
> it a special name?

Fixed by https://codereview.chromium.org/988653002/. Thanks

Powered by Google App Engine
This is Rietveld 408576698