| Index: content/browser/service_worker/service_worker_request_handler.h
|
| diff --git a/content/browser/service_worker/service_worker_request_handler.h b/content/browser/service_worker/service_worker_request_handler.h
|
| index 4e03fbc0a543f134451b0279d26c32e156dfd764..c361b3cbcd0771455ba441fae6a97e1392f5a030 100644
|
| --- a/content/browser/service_worker/service_worker_request_handler.h
|
| +++ b/content/browser/service_worker/service_worker_request_handler.h
|
| @@ -60,6 +60,12 @@ class CONTENT_EXPORT ServiceWorkerRequestHandler
|
| // Creates a protocol interceptor for ServiceWorker.
|
| static scoped_ptr<net::URLRequestInterceptor> CreateInterceptor();
|
|
|
| + // Returns true if the request falls into the scope of a ServiceWorker.
|
| + // It's only reliable after the ServiceWorkerRequestHandler MaybeCreateJob
|
| + // method run to completion for this request. The AppCache handler uses
|
| + // this to avoid colliding with ServiceWorkers.
|
| + static bool IsControlledByServiceWorker(net::URLRequest* request);
|
| +
|
| virtual ~ServiceWorkerRequestHandler();
|
|
|
| // Called via custom URLRequestJobFactory.
|
|
|