DescriptionServiceWorker: Remove unnecessary accessors for uncommitted/purgeable resources
This is a refactoring CL.
Resources managed by service worker should belong to one of following lists for
their whole lifetime: uncommitted, committed and purgeable. They are allowed to
move among the lists as following rules:
1. <new> -> uncommitted -> committed -> purgeable -> <doomed>
2. <new> -> uncommitted -> purgeable -> <doomed>
To strictly obey the rules, this CL...
- removes ClearUncommittedResourceIds(). Uncommitted resources to be doomed
should be moved into the purgeable list rather than directly removed from
the uncommitted list.
- removes WritePurgeableResourceIds(). Resources to be doomed should not be
directly written in the purgeable list. They should be moved from the
uncommitted or committed list.
BUG=485900
Committed: https://crrev.com/fb707420e296d3d594aef9ecb5d787b995ee5e55
Cr-Commit-Position: refs/heads/master@{#354237}
Patch Set 1 #
Messages
Total messages: 11 (4 generated)
|