diff options
author | msw <msw@chromium.org> | 2015-08-05 15:55:09 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-05 22:55:47 +0000 |
commit | 669dda3d77f4ba264569fa37e7f12aa3fffd4df1 (patch) | |
tree | 57d7bdcfd72497a617b7ad6d903072bf5da031e7 /net | |
parent | ea3eb2bd4f863d95b388ecae1e3404ca10696a8a (diff) | |
download | chromium_src-669dda3d77f4ba264569fa37e7f12aa3fffd4df1.zip chromium_src-669dda3d77f4ba264569fa37e7f12aa3fffd4df1.tar.gz chromium_src-669dda3d77f4ba264569fa37e7f12aa3fffd4df1.tar.bz2 |
Add GetMimeTypeFromFile to Mojo's network service.
This allows loading file:// URLs as html (etc.) content.
This resolves https://codereview.chromium.org/1268993003 TODO.
It's also a compromise of the following requirements:
1) Use net/base/mime_util.* to infer MIME from file paths.
(we want a single robust and consistent inference of MIME types)
2) Do not move the mime_util code out of src/net.
(net can't depend on components; this code doesn't belong in base)
3) Avoid using the network service to load file URLs.
(we want to avoid file system access by the network service)
BUG=513779
TEST=Mojo and Mandoline handle html (etc.) file URLs as expected.
R=jam@chromium.org
Review URL: https://codereview.chromium.org/1274433003
Cr-Commit-Position: refs/heads/master@{#341998}
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions