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

Issue 6592089: Adding sniffing of MHTML files. (Closed)

Created:
9 years, 9 months ago by Jay Civelli
Modified:
4 years, 2 months ago
Reviewers:
abarth-chromium
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Adding sniffing of MHTML files. In order to support opening MHTML files, we need to sniff for them. Since they have a header that might be fairly long before they can be identified with certainty, we have to rely on the file extension. At this point WebKit does not support MHTML, so Chrome only displays it as plain/text (as it does without this CL). BUG=30863 TEST=Run the unit-tests.

Patch Set 1 #

Patch Set 2 : Adding unit-tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -8 lines) Patch
M net/base/mime_sniffer.cc View 2 chunks +11 lines, -8 lines 0 comments Download
M net/base/mime_sniffer_unittest.cc View 1 1 chunk +30 lines, -0 lines 0 comments Download

Powered by Google App Engine
This is Rietveld 408576698