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

Issue 345773003: Mojo: teach launcher about mojo:// URLs. (Closed)

Created:
6 years, 6 months ago by Aaron Boodman
Modified:
6 years, 6 months ago
CC:
darin (slow to review), Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Mojo: teach launcher about mojo:// URLs. Now you can type, e.g., mojo://mojo_embedded_app/ffff00ff into the box and get a purple square. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278686

Patch Set 1 : cleanup #

Total comments: 5

Patch Set 2 : rebase, add comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -18 lines) Patch
M mojo/examples/window_manager/window_manager.cc View 1 2 chunks +6 lines, -10 lines 0 comments Download
M mojo/mojo_services.gypi View 1 2 chunks +2 lines, -1 line 0 comments Download
M mojo/services/launcher/launcher.cc View 1 3 chunks +20 lines, -4 lines 0 comments Download
M mojo/services/public/interfaces/launcher/launcher.mojom View 1 1 chunk +19 lines, -3 lines 2 comments Download

Messages

Total messages: 13 (0 generated)
Aaron Boodman
https://codereview.chromium.org/345773003/diff/20001/mojo/examples/window_manager/window_manager.cc File mojo/examples/window_manager/window_manager.cc (right): https://codereview.chromium.org/345773003/diff/20001/mojo/examples/window_manager/window_manager.cc#newcode116 mojo/examples/window_manager/window_manager.cc:116: app_url = "mojo://mojo_embedded_app"; Both work, but this form is ...
6 years, 6 months ago (2014-06-19 20:27:33 UTC) #1
Aaron Boodman
6 years, 6 months ago (2014-06-19 20:27:47 UTC) #2
Ben Goodger (Google)
lgtm https://codereview.chromium.org/345773003/diff/20001/mojo/examples/window_manager/window_manager.cc File mojo/examples/window_manager/window_manager.cc (right): https://codereview.chromium.org/345773003/diff/20001/mojo/examples/window_manager/window_manager.cc#newcode156 mojo/examples/window_manager/window_manager.cc:156: nav_details->url = requested_url; redundant with response->url? https://codereview.chromium.org/345773003/diff/20001/mojo/services/launcher/launcher.cc File ...
6 years, 6 months ago (2014-06-19 21:09:47 UTC) #3
Aaron Boodman
https://codereview.chromium.org/345773003/diff/20001/mojo/examples/window_manager/window_manager.cc File mojo/examples/window_manager/window_manager.cc (right): https://codereview.chromium.org/345773003/diff/20001/mojo/examples/window_manager/window_manager.cc#newcode156 mojo/examples/window_manager/window_manager.cc:156: nav_details->url = requested_url; On 2014/06/19 21:09:47, Ben Goodger (Google) ...
6 years, 6 months ago (2014-06-19 21:25:12 UTC) #4
Ben Goodger (Google)
> But then the caller will need to be sure to check whether response->url is ...
6 years, 6 months ago (2014-06-19 21:29:56 UTC) #5
Aaron Boodman
The CQ bit was checked by aa@chromium.org
6 years, 6 months ago (2014-06-20 00:08:43 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aa@chromium.org/345773003/40001
6 years, 6 months ago (2014-06-20 00:11:00 UTC) #7
commit-bot: I haz the power
Change committed as 278686
6 years, 6 months ago (2014-06-20 12:57:02 UTC) #8
darin (slow to review)
https://codereview.chromium.org/345773003/diff/40001/mojo/services/public/interfaces/launcher/launcher.mojom File mojo/services/public/interfaces/launcher/launcher.mojom (right): https://codereview.chromium.org/345773003/diff/40001/mojo/services/public/interfaces/launcher/launcher.mojom#newcode32 mojo/services/public/interfaces/launcher/launcher.mojom:32: OnLaunch(string handler_url, string view_url, The final URL of the ...
6 years, 6 months ago (2014-06-20 15:12:37 UTC) #9
Aaron Boodman
https://codereview.chromium.org/345773003/diff/40001/mojo/services/public/interfaces/launcher/launcher.mojom File mojo/services/public/interfaces/launcher/launcher.mojom (right): https://codereview.chromium.org/345773003/diff/40001/mojo/services/public/interfaces/launcher/launcher.mojom#newcode32 mojo/services/public/interfaces/launcher/launcher.mojom:32: OnLaunch(string handler_url, string view_url, On 2014/06/20 15:12:37, darin wrote: ...
6 years, 6 months ago (2014-06-20 16:09:32 UTC) #10
darin (slow to review)
What is the case in which a request is not performed? On Jun 20, 2014 ...
6 years, 6 months ago (2014-06-20 16:14:35 UTC) #11
Aaron Boodman
Well one current case is mojo:// URLs. But some future cases include: - an app ...
6 years, 6 months ago (2014-06-20 16:52:43 UTC) #12
darin (slow to review)
6 years, 6 months ago (2014-06-23 17:10:47 UTC) #13
On Fri, Jun 20, 2014 at 9:52 AM, Aaron Boodman <aa@chromium.org> wrote:

> Well one current case is mojo:// URLs.
>
> But some future cases include:
> - an app that has already been cached and can handle the destination URL
> - app caches
> - service workers
>

I don't immediately grok the implications for these.

-Darin



>
>
> On Fri, Jun 20, 2014 at 9:14 AM, Darin Fisher <darin@chromium.org> wrote:
>
>> What is the case in which a request is not performed?
>> On Jun 20, 2014 9:09 AM, <aa@chromium.org> wrote:
>>
>>>
>>> https://codereview.chromium.org/345773003/diff/40001/mojo/
>>> services/public/interfaces/launcher/launcher.mojom
>>> File mojo/services/public/interfaces/launcher/launcher.mojom (right):
>>>
>>> https://codereview.chromium.org/345773003/diff/40001/mojo/
>>> services/public/interfaces/launcher/launcher.mojom#newcode32
>>> mojo/services/public/interfaces/launcher/launcher.mojom:32:
>>> OnLaunch(string handler_url, string view_url,
>>> On 2014/06/20 15:12:37, darin wrote:
>>>
>>>> The final URL of the redirect chain is also stored in URLResponse.url.
>>>>
>>> That
>>>
>>>> should always be the same as view_url, right?
>>>>
>>>
>>> In the case where a request was performed, yes. But a request might not
>>> be performed, so I thought it was better to always pass this URL so
>>> clients could use the API consistently.
>>>
>>> I admit it's a bit awkward though. Suggestions welcome.
>>>
>>> https://codereview.chromium.org/345773003/
>>>
>>
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698