Centralize the setting of Accept headers

Set the accept header in MimeTypeResourceHandler based on the
request's ResourceType. All network requests flow through
this point, so we can observe child process requests, whether
or not they are from blink, as well as PlzNavigate requests.

MimeTypeResourceHandler still needs to defer to blink in
certain situations, mostly because an Accept header can be
manually set on an XHR. However, ResourceType also isn't
precise enough to handle every case: it doesn't distinguish
between CSS and XSL stylesheets. It may be worth adding a
separate ResourceType for XSL in the future, but for now,
manually set the Accept header in blink's
XSLStyleSheetResource.

BUG=
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation

Review URL: https://codereview.chromium.org/1839473002

Cr-Commit-Position: refs/heads/master@{#385827}
15 files changed