OOR-CORS: call Resource::SetSourceOrigin on each Resource creation
This is a preparation to merge the source origin and the fetcher origin in Resource. Now the source origin is set when the Resource is cacheable, or for preloads. With this logic, in most cases, SetSourceOrigin is called twice, or isn't called for some cases that do not need the origin for managing the memory cache. This patch makes the origin available on each Resource creation so that all Resource instances can have it to be used for another purpose, e.g. caching meta information for SW, and so on. Bug: 803766 Change-Id: Ib03fbe52f473d6cf70a5920c94f4bf421d851334 Reviewed-on: https://chromium-review.googlesource.com/940364Reviewed-by:Yutaka Hirano <yhirano@chromium.org> Commit-Queue: Takashi Toyoshima <toyoshim@chromium.org> Cr-Commit-Position: refs/heads/master@{#541392}
Showing
Please register or sign in to comment