DescriptionAdd an abstraction for a job in the AppCacheRequestHandler class.
The abstraction is in the form of an AppCacheJob base class which has two subclasses.
1. AppCacheURLRequestJob : This is the current URLRequestJob implementation which relies
on URLRequest interception to serve requests from the cache.
2. AppCacheURLLoaderJob : This will eventually be the job mechanism for the URLLoader based
AppCache functionality (network service).
The AppCacheJob provides a number of methods like DeliverAppCachedResponse(),
DeliverNetworkResponse(), DeliverErrorResponse(), etc which allow the job to control the content
being served out.
The expectation is that with this abstraction, we should have minimal changes in core AppCache
functionality for the URLLoader work. We will mostly be an AppCache consumer.
BUG=715632
Review-Url: https://codereview.chromium.org/2865613002
Cr-Commit-Position: refs/heads/master@{#470227}
Committed: https://chromium.googlesource.com/chromium/src/+/46f3e94b444a8fa09c22cdd0b0d3313414feb0c1
Patch Set 1 #Patch Set 2 : Fix comments, the code in AppCacheInterceptor to deref the job only if it non null #Patch Set 3 : Fix build failures #
Total comments: 13
Patch Set 4 : Address review comments #Patch Set 5 : git cl format #Patch Set 6 : Fix compile failures #Messages
Total messages: 35 (26 generated)
|