Reduce/Remove URLRequest dependencies from AppCacheRequestHandler
The AppCacheRequestHandler class provides functionality for serving network requests from the AppCache if applicable. This class is instantiated by the AppCacheInterceptor when a network request is initiated. Its lifetime depends on the associated URLRequest. The plan is to reuse this class in the network service world where we won't be intercepting network requests in the browser process. This effectively means that there won't be any URLRequest as well To achieve this the proposal is to provide an abstraction for a request called AppCachRequest. This class will have two subclasses at the moment. AppCacheURLRequest and AppCacheURLLoaderRequest. The AppCacheURLRequest class will be used by the current network implementation which relies on intercepting n/w requests. The AppCacheURLLoaderRequest class will be used by the network service mojo implementation. Next step is to provide an abstraction for the AppCacheURLRequestJob class. BUG=715632 TBR=jam Review-Url: https://codereview.chromium.org/2848493007 Cr-Commit-Position: refs/heads/master@{#469254}
Showing
This diff is collapsed.
Please register or sign in to comment