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

Issue 27943002: Teach mojo_shell how to load http URLs (Closed)

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

Description

Teach mojo_shell how to load http URLs After this CL, we can load content over HTTP. In order to make that work, I needed to introduce a number of basic concepts into the shell, including an IO thread and a directory to store data (such as the HTTP cache). I've tried to keep the net dependencies separated from the bulk of the mojo_shell code because I expect we'll want to move the net dependencies to an app that runs on top of the Mojo platform rather than linked into the mojo_shell itself. To that end, the mojo::loader::Loader class doesn't leak any net headers to its clients. The version of the loader in this CL is extremely basic. We'll undoubtedly make it fancier as time goes on. The next step after this CL is to store the result in a file and then load that file as a shared object. R=aa@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=229496

Patch Set 1 #

Total comments: 1

Patch Set 2 : Shell provides the IO thread #

Patch Set 3 : Works! #

Patch Set 4 : Fix some style nits #

Total comments: 10

Patch Set 5 : Fix lifetime #

Total comments: 4

Patch Set 6 : Address reviewer comments #

Patch Set 7 : Add missing include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+475 lines, -8 lines) Patch
A + mojo/loader/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A mojo/loader/job.h View 1 2 3 4 5 1 chunk +37 lines, -0 lines 0 comments Download
A + mojo/loader/job.cc View 1 2 3 4 1 chunk +12 lines, -7 lines 0 comments Download
A mojo/loader/loader.h View 1 2 3 4 1 chunk +36 lines, -0 lines 0 comments Download
A mojo/loader/loader.cc View 1 2 3 4 1 chunk +81 lines, -0 lines 0 comments Download
A mojo/loader/url_request_context_getter.h View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
A mojo/loader/url_request_context_getter.cc View 1 2 3 4 1 chunk +94 lines, -0 lines 0 comments Download
M mojo/mojo.gyp View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M mojo/shell/app_container.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/shell/app_container.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M mojo/shell/shell.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
A mojo/shell/storage.h View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
A mojo/shell/storage.cc View 1 2 3 4 5 6 1 chunk +52 lines, -0 lines 0 comments Download
A mojo/shell/task_runners.h View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
A mojo/shell/task_runners.cc View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
abarth-chromium
@aa: This CL builds on https://codereview.chromium.org/27536014/ and adds support for http URLs. The main open ...
7 years, 2 months ago (2013-10-18 01:20:45 UTC) #1
abarth-chromium
Another thing to consider about this CL is that it creates two new threads: a ...
7 years, 2 months ago (2013-10-18 01:21:38 UTC) #2
darin (slow to review)
Note, we are going to need an I/O thread in the shell process to support ...
7 years, 2 months ago (2013-10-18 04:03:18 UTC) #3
abarth-chromium
On 2013/10/18 04:03:18, darin wrote: > Note, we are going to need an I/O thread ...
7 years, 2 months ago (2013-10-18 04:54:49 UTC) #4
abarth-chromium
I've re-worked this so that the shell provides the IO thread. I still need to ...
7 years, 2 months ago (2013-10-18 06:17:02 UTC) #5
abarth-chromium
Ok, this is ready for review now. It seems to work in local testing I ...
7 years, 2 months ago (2013-10-18 06:55:54 UTC) #6
darin (slow to review)
https://codereview.chromium.org/27943002/diff/123001/mojo/loader/loader.cc File mojo/loader/loader.cc (right): https://codereview.chromium.org/27943002/diff/123001/mojo/loader/loader.cc#newcode42 mojo/loader/loader.cc:42: } nit: "} // namespace" https://codereview.chromium.org/27943002/diff/123001/mojo/loader/loader.cc#newcode58 mojo/loader/loader.cc:58: Loader::~Loader() { ...
7 years, 2 months ago (2013-10-18 07:11:29 UTC) #7
abarth-chromium
https://codereview.chromium.org/27943002/diff/123001/mojo/loader/loader.cc File mojo/loader/loader.cc (right): https://codereview.chromium.org/27943002/diff/123001/mojo/loader/loader.cc#newcode42 mojo/loader/loader.cc:42: } On 2013/10/18 07:11:29, darin wrote: > nit: "} ...
7 years, 2 months ago (2013-10-18 07:27:16 UTC) #8
abarth-chromium
Ok, I think I've fixed the lifetime issue. Now the Loader class acts more like ...
7 years, 2 months ago (2013-10-18 08:02:13 UTC) #9
Aaron Boodman
I don't know enough about this area to comment intelligently, but LGTM to unblock. https://codereview.chromium.org/27943002/diff/173001/mojo/loader/job.h ...
7 years, 2 months ago (2013-10-18 17:59:41 UTC) #10
abarth-chromium
https://codereview.chromium.org/27943002/diff/173001/mojo/loader/loader.cc File mojo/loader/loader.cc (right): https://codereview.chromium.org/27943002/diff/173001/mojo/loader/loader.cc#newcode18 mojo/loader/loader.cc:18: class JobImpl : public net::URLFetcherDelegate, public Job { On ...
7 years, 2 months ago (2013-10-18 18:05:28 UTC) #11
abarth-chromium
Other comments address. Thanks for the review. @Darin: I'm happy to address any additional comments ...
7 years, 2 months ago (2013-10-18 18:33:51 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/27943002/233001
7 years, 2 months ago (2013-10-18 19:02:24 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/27943002/233001
7 years, 2 months ago (2013-10-18 21:56:32 UTC) #14
abarth-chromium
Committed patchset #6 manually as r229481.
7 years, 2 months ago (2013-10-18 22:09:05 UTC) #15
commit-bot: I haz the power
Failed to trigger a try job on chromium_presubmit HTTP Error 400: Bad Request
7 years, 2 months ago (2013-10-18 23:54:06 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/27943002/453001
7 years, 2 months ago (2013-10-18 23:58:42 UTC) #17
abarth-chromium
7 years, 2 months ago (2013-10-19 00:17:15 UTC) #18
Message was sent while issue was closed.
Committed patchset #7 manually as r229496.

Powered by Google App Engine
This is Rietveld 408576698