| Index: content/browser/loader/url_loader_request_handler.h
|
| diff --git a/content/browser/loader/url_loader_request_handler.h b/content/browser/loader/url_loader_request_handler.h
|
| index fb0a1f4b2f31e521926888dc0f9ac9090e4e72a9..b73661873e321446f891b6ace0463223840a2350 100644
|
| --- a/content/browser/loader/url_loader_request_handler.h
|
| +++ b/content/browser/loader/url_loader_request_handler.h
|
| @@ -10,6 +10,7 @@
|
| #include "base/macros.h"
|
| #include "content/public/common/url_loader.mojom.h"
|
| #include "content/public/common/url_loader_factory.mojom.h"
|
| +#include "net/url_request/redirect_info.h"
|
|
|
| namespace content {
|
|
|
| @@ -39,6 +40,17 @@ class CONTENT_EXPORT URLLoaderRequestHandler {
|
| // going forward. Subclasses who want to handle subresource requests etc may
|
| // want to override this to return a custom factory.
|
| virtual mojom::URLLoaderFactoryPtr MaybeCreateSubresourceFactory();
|
| +
|
| + // Returns true if the handler creates a loader for the |response| passed.
|
| + // An example of where this is used is AppCache, where the handler returns
|
| + // fallback content for the response passed in.
|
| + // The URLLoader interface pointer is returned in the |loader| parameter.
|
| + // The interface request for the URLLoaderClient is returned in the
|
| + // |client_request| parameter.
|
| + virtual bool MaybeCreateLoaderForResponse(
|
| + const ResourceResponseHead& response,
|
| + mojom::URLLoaderPtr* loader,
|
| + mojom::URLLoaderClientRequest* client_request);
|
| };
|
|
|
| } // namespace content
|
|
|