Tidy up preload related states in blink::Resource
This CL cleans up preload related states in Resource as following: - Removes preload_count_ and introduces is_unused_preload_. With this change, a resource can be a preload for only one request, and hence tied to one ResourceFetcher at a time. - Renames IncreasePreloadCount and DecreasePreloadCount to MarkAsPreload and MatchPreload respectively. - Removed preload_result_. - Changes the timing of kPreloadNotReferenced => kPreloadReferenced (i.e., true => false for is_unused_preload_) state transition from when a ResourceClient is added to when MatchPreload is called. - Removes PreloadReferencePolicy. Bug: 652228 Change-Id: I6564c0eed24f19051ee49c429cf87db746414023 Reviewed-on: https://chromium-review.googlesource.com/544363 Commit-Queue: Yutaka Hirano <yhirano@chromium.org> Reviewed-by:Yoav Weiss <yoav@yoav.ws> Reviewed-by:
Charlie Harrison <csharrison@chromium.org> Reviewed-by:
Hiroshige Hayashizaki <hiroshige@chromium.org> Reviewed-by:
Takeshi Yoshino <tyoshino@chromium.org> Cr-Commit-Position: refs/heads/master@{#486730}
Showing
Please register or sign in to comment