Sniff real MIME types of images to enforce unoptimized image policies.
This patch adds a function to sniff the real MIME types of images in image_decoder. This function will be used by the unoptimized images feature policies in order to determine the which policy to enforce for each image. Bug: 943203 Change-Id: I40b296a32bf49e0aa4a2e5ee9656a73eec5984ec Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1551483Reviewed-by:Leon Scroggins <scroggo@chromium.org> Reviewed-by:
Chris Blume <cblume@chromium.org> Reviewed-by:
Philip Rogers <pdr@chromium.org> Commit-Queue: Paul Meyer <paulmeyer@chromium.org> Cr-Commit-Position: refs/heads/master@{#648326}
Showing
Please register or sign in to comment