Problem:
Currently |network::mojom::URLLoader::FollowRedirect()| takes no argument and simply reuses existing headers for the redirect.
However consumers like DMServer ( issue 832749 ) may want to add headers based on redirected URLs.
Proposal:
Update the interface to
`FollowRedirect(network.mojom.HttpRequestHeaders? modified_request_headers)`
so consumers have a chance to modify headers.
Implementation Plan:
1. Update the interface and guard non-empty impl with DCHECKs.
2. Handle |modified_request_headers| in impls and remove DCHECKs gradually.
Comment 1 by chongz@chromium.org
, May 22 2018