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

Issue 694303002: Allow local file to run though content handler. (Closed)

Created:
6 years, 1 month ago by qsr
Modified:
6 years, 1 month ago
CC:
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:
https://github.com/domokit/mojo.git@master
Project:
mojo
Visibility:
Public.

Description

Allow local file to run though content handler. This CL allows local file to use content handler. For this it aggregates the 2 code paths when reading a local file or retrieving a file from the network. R=aa@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/da86e22cf5ae8a97c458db996e5669d653e0e5ea

Patch Set 1 #

Patch Set 2 : Remove mime mapping #

Total comments: 17

Patch Set 3 : Follow review + rebase #

Patch Set 4 : Fix spurious warnings #

Patch Set 5 : Small refactor #

Total comments: 4

Patch Set 6 : Follow review #

Patch Set 7 : Delay running the callback in AsPath as the code doesn't support re-entrency. #

Total comments: 7

Patch Set 8 : Follow review #

Patch Set 9 : Fix constants. #

Total comments: 6

Patch Set 10 : Follow review #

Total comments: 4

Patch Set 11 : Follow review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+334 lines, -107 lines) Patch
M mojo/common/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M mojo/common/data_pipe_utils.h View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M mojo/common/data_pipe_utils.cc View 1 2 3 4 5 6 7 3 chunks +58 lines, -2 lines 0 comments Download
A mojo/common/data_pipe_utils_unittest.cc View 1 2 3 4 5 6 7 1 chunk +64 lines, -0 lines 0 comments Download
M mojo/shell/dynamic_application_loader.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +204 lines, -105 lines 0 comments Download

Messages

Total messages: 33 (2 generated)
qsr
6 years, 1 month ago (2014-11-03 14:29:20 UTC) #1
abarth-chromium
Should we wait until we're done implementing #! ? It's not clear to me how ...
6 years, 1 month ago (2014-11-03 15:08:25 UTC) #3
qsr
On 2014/11/03 15:08:25, abarth wrote: > Should we wait until we're done implementing #! ? ...
6 years, 1 month ago (2014-11-03 15:39:18 UTC) #4
abarth-chromium
On 2014/11/03 at 15:39:18, qsr wrote: > I think we all agree with want #! ...
6 years, 1 month ago (2014-11-03 15:40:56 UTC) #5
qsr
On 2014/11/03 15:40:56, abarth wrote: > On 2014/11/03 at 15:39:18, qsr wrote: > > I ...
6 years, 1 month ago (2014-11-03 16:10:38 UTC) #6
Aaron Boodman
Adam, can you explain your position a little more? I agree that new content written ...
6 years, 1 month ago (2014-11-03 17:01:06 UTC) #7
abarth-chromium
On 2014/11/03 at 16:10:38, qsr wrote: > Are we then saying that file:// url won't ...
6 years, 1 month ago (2014-11-03 17:05:58 UTC) #8
qsr
> > I mean, the main part of this change is to allow to load ...
6 years, 1 month ago (2014-11-03 17:19:19 UTC) #9
qsr
Removed the mime mapping from this patch.
6 years, 1 month ago (2014-11-03 17:22:00 UTC) #10
abarth-chromium
On 2014/11/03 at 17:22:00, qsr wrote: > Removed the mime mapping from this patch. Thanks!
6 years, 1 month ago (2014-11-03 17:28:34 UTC) #11
Aaron Boodman
I think we need to add a bunch of content type sniffing (e.g., in the ...
6 years, 1 month ago (2014-11-03 17:33:59 UTC) #12
hansmuller
On 2014/11/03 17:33:59, Aaron Boodman wrote: > I think we need to add a bunch ...
6 years, 1 month ago (2014-11-03 17:49:52 UTC) #13
Aaron Boodman
https://codereview.chromium.org/694303002/diff/20001/mojo/common/data_pipe_utils.cc File mojo/common/data_pipe_utils.cc (right): https://codereview.chromium.org/694303002/diff/20001/mojo/common/data_pipe_utils.cc#newcode67 mojo/common/data_pipe_utils.cc:67: void* buffer; = nullptr; I know the code above ...
6 years, 1 month ago (2014-11-03 19:20:15 UTC) #14
qsr
There is a few changed due to the #! feature. The food news is that ...
6 years, 1 month ago (2014-11-04 11:58:34 UTC) #15
hansmuller
https://codereview.chromium.org/694303002/diff/80001/mojo/shell/dynamic_application_loader.cc File mojo/shell/dynamic_application_loader.cc (right): https://codereview.chromium.org/694303002/diff/80001/mojo/shell/dynamic_application_loader.cc#newcode54 mojo/shell/dynamic_application_loader.cc:54: shebang.substr(2, std::string::npos), base::TRIM_ALL, &url_string); Is this necessary? The URL ...
6 years, 1 month ago (2014-11-04 16:36:57 UTC) #17
qsr
https://codereview.chromium.org/694303002/diff/80001/mojo/shell/dynamic_application_loader.cc File mojo/shell/dynamic_application_loader.cc (right): https://codereview.chromium.org/694303002/diff/80001/mojo/shell/dynamic_application_loader.cc#newcode54 mojo/shell/dynamic_application_loader.cc:54: shebang.substr(2, std::string::npos), base::TRIM_ALL, &url_string); On 2014/11/04 16:36:57, hansmuller wrote: ...
6 years, 1 month ago (2014-11-04 17:30:57 UTC) #18
Aaron Boodman
https://codereview.chromium.org/694303002/diff/20001/mojo/common/data_pipe_utils.cc File mojo/common/data_pipe_utils.cc (right): https://codereview.chromium.org/694303002/diff/20001/mojo/common/data_pipe_utils.cc#newcode67 mojo/common/data_pipe_utils.cc:67: void* buffer; On 2014/11/04 11:58:34, qsr wrote: > On ...
6 years, 1 month ago (2014-11-04 18:05:01 UTC) #19
qsr
https://codereview.chromium.org/694303002/diff/20001/mojo/shell/dynamic_application_loader.cc File mojo/shell/dynamic_application_loader.cc (right): https://codereview.chromium.org/694303002/diff/20001/mojo/shell/dynamic_application_loader.cc#newcode35 mojo/shell/dynamic_application_loader.cc:35: class LoaderResponse { On 2014/11/04 18:05:01, Aaron Boodman wrote: ...
6 years, 1 month ago (2014-11-05 10:21:54 UTC) #20
Aaron Boodman
Sorry to push back on this, but having the two different abstractions seems really over ...
6 years, 1 month ago (2014-11-06 02:46:03 UTC) #21
Aaron Boodman
https://codereview.chromium.org/694303002/diff/120001/mojo/shell/dynamic_application_loader.cc File mojo/shell/dynamic_application_loader.cc (right): https://codereview.chromium.org/694303002/diff/120001/mojo/shell/dynamic_application_loader.cc#newcode169 mojo/shell/dynamic_application_loader.cc:169: GURL url_; On 2014/11/06 02:46:03, Aaron Boodman wrote: > ...
6 years, 1 month ago (2014-11-06 07:40:34 UTC) #22
qsr
https://codereview.chromium.org/694303002/diff/120001/mojo/shell/dynamic_application_loader.cc File mojo/shell/dynamic_application_loader.cc (right): https://codereview.chromium.org/694303002/diff/120001/mojo/shell/dynamic_application_loader.cc#newcode83 mojo/shell/dynamic_application_loader.cc:83: if (skip) { On 2014/11/06 02:46:03, Aaron Boodman wrote: ...
6 years, 1 month ago (2014-11-06 15:30:22 UTC) #23
qsr
gentle ping?
6 years, 1 month ago (2014-11-07 08:49:21 UTC) #24
Aaron Boodman
https://codereview.chromium.org/694303002/diff/160001/mojo/shell/dynamic_application_loader.cc File mojo/shell/dynamic_application_loader.cc (right): https://codereview.chromium.org/694303002/diff/160001/mojo/shell/dynamic_application_loader.cc#newcode52 mojo/shell/dynamic_application_loader.cc:52: bool PeekContentHandler(std::string* mojo_shebang, I would prefer this function in ...
6 years, 1 month ago (2014-11-07 08:56:28 UTC) #25
Aaron Boodman
Looking at this, I still think that basic inheritance is even simpler here: Loader protected ...
6 years, 1 month ago (2014-11-07 08:57:56 UTC) #26
qsr
On 2014/11/07 08:57:56, Aaron Boodman wrote: > Looking at this, I still think that basic ...
6 years, 1 month ago (2014-11-07 09:33:16 UTC) #27
qsr
https://codereview.chromium.org/694303002/diff/160001/mojo/shell/dynamic_application_loader.cc File mojo/shell/dynamic_application_loader.cc (right): https://codereview.chromium.org/694303002/diff/160001/mojo/shell/dynamic_application_loader.cc#newcode357 mojo/shell/dynamic_application_loader.cc:357: GURL("mojo:network_service"), network_service_); On 2014/11/07 08:56:27, Aaron Boodman wrote: > ...
6 years, 1 month ago (2014-11-07 09:33:22 UTC) #28
Aaron Boodman
much better. https://codereview.chromium.org/694303002/diff/180001/mojo/shell/dynamic_application_loader.cc File mojo/shell/dynamic_application_loader.cc (right): https://codereview.chromium.org/694303002/diff/180001/mojo/shell/dynamic_application_loader.cc#newcode81 mojo/shell/dynamic_application_loader.cc:81: void OnResponse(bool success) { Rename this Load(). ...
6 years, 1 month ago (2014-11-07 09:44:36 UTC) #29
qsr
https://codereview.chromium.org/694303002/diff/180001/mojo/shell/dynamic_application_loader.cc File mojo/shell/dynamic_application_loader.cc (right): https://codereview.chromium.org/694303002/diff/180001/mojo/shell/dynamic_application_loader.cc#newcode81 mojo/shell/dynamic_application_loader.cc:81: void OnResponse(bool success) { On 2014/11/07 09:44:36, Aaron Boodman ...
6 years, 1 month ago (2014-11-07 09:58:19 UTC) #30
Aaron Boodman
lgtm
6 years, 1 month ago (2014-11-07 10:03:50 UTC) #31
qsr
Committed patchset #11 (id:200001) manually as da86e22cf5ae8a97c458db996e5669d653e0e5ea (presubmit successful).
6 years, 1 month ago (2014-11-07 10:04:13 UTC) #32
qsr
6 years, 1 month ago (2014-11-07 10:05:00 UTC) #33
Message was sent while issue was closed.
Thanks

Powered by Google App Engine
This is Rietveld 408576698