Set 'ResourceRequest::requestorOrigin' in Blink for more request types.

This patch ensures that we set the correct request initiator for all
requests that run through Blink's ResourceFetcher (which is basically
everything except navigation) by extending
'FrameFetchContext::setFirstPartyForCookies' into a more general-purpose
setter that also takes care of 'requestorOrigin', applying these setting
to requests sent through 'PingLoader' and 'BeaconLoader'. This doesn't have any
web-visible effect, but it will allow us to remove the requestor origin
setting from 'content::RenderFrameImpl' in the somewhat near future.

As a drive-by, this fixes 'FrameFetchContext::setFirstPartyForCookies's
current implementation, which was providing the wrong first-party for
nested and cross-origin requests sent through 'PingLoader' and 'BeaconLoader'.

BUG=625969
R=jochen@chromium.org

Review-Url: https://codereview.chromium.org/2147473002
Cr-Commit-Position: refs/heads/master@{#405459}
13 files changed