Remove ResourceType parameter from NetworkServiceClient::OnAuthRequired.

The browser needed two things:
-if it was for the main frame's navigation request: it can deduce this already from the process/frame ID
-if it's a cross-origin image request which depending on policy can bring up a login dialog: plumbed the policy to the renderer in RendererPreferences and reused ResourceRequest::do_not_prompt_for_login for this use case

This is a step towards the TODO to remove this from network::ResourceRequest, since network service
shouldn't know about this enum.

Bug: 960143

Change-Id: I32b09fc11bd00a054f7069388af457fd5ffe1a39
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1595563
Commit-Queue: John Abd-El-Malek <[email protected]>
Reviewed-by: Kinuko Yasuda <[email protected]>
Cr-Commit-Position: refs/heads/master@{#657328}
20 files changed