[Client-Hints] Move AddClientHintsIfNecessary to BaseFetchContext
Make client hints available to other inheritors (i.e. WorkerFetchContext). Also a little bit of refactoring. Should be a purely mechanical change. The purpose behind the refactor is to pull out the dependence on the Document to the calling site and make everything Document- dependent optional, so non-Document-related calls can be made (specifically Service Workers initializing their own requests). Bug: 1151050 Change-Id: I964585e7a1509b96e8a36ea673be81ff85e6a208 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2557225 Commit-Queue: Aaron Tagliaboschi <aarontag@chromium.org> Reviewed-by:Maksim Orlovich <morlovich@chromium.org> Reviewed-by:
Mike West <mkwst@chromium.org> Cr-Commit-Position: refs/heads/master@{#843650}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment