Allow content script requests to attach SameSite cookies.

When a content script is injected into a document, it can make requests
to origins in its manifest. With recent changes to allow Chrome to block
cross-site documents, the initiator of content scripts requests was
changed to reflect the extension origin. This change meant that SameSite
cookies were not attached to those requests.

This CL introduces a check for content scripts making subresource requests
and tags those requests to allow attaching SameSite cookies.

Reland of https://chromium-review.googlesource.com/c/chromium/src/+/896690

Bug: 796480
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo
Change-Id: I8316f259f8b04c4fad406c398ba5207abef8a00e
Reviewed-on: https://chromium-review.googlesource.com/974882
Commit-Queue: Nasko Oskov <nasko@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#545584}
24 files changed