DescriptionRemove net::Filter direct dependency on IsSupportedMimeType
There is a widespread consensus that mime type checks don't belong
to net/, they should be moved to content/. But in order to be able
to do that, first we need to remove all direct dependencies on
mime type checks under net/. This CL will remove such a direct
dependency from net::Filter::FixupEncodingTypes. We'll introduce
a new NetworkDelegate::IsSupportedMimeType API instead and that
will be overridden by actual network delegate implementations
that care about this (ChromeNetworkDelegate and ShellNetworkDelegate)
BUG=318217
Patch Set 1 #Patch Set 2 : Added LayeredNetworkDelegate::OnIsSupportedMimeType #Patch Set 3 : Added NetworkDelegate::IsSupportedMimeType overrides for Chrome/shell delegates #Patch Set 4 : Use NetworkDelegate::IsSupportedMimeType in net::Filter::FixupEncodingTypes #
Messages
Total messages: 3 (2 generated)
|