Index: content/browser/service_worker/service_worker_url_request_job.h |
diff --git a/content/browser/service_worker/service_worker_url_request_job.h b/content/browser/service_worker/service_worker_url_request_job.h |
index 278f250a2ad32685f7a7027e0bb94423486229a3..76e33a67517a379929a3002670e25c19afca46fd 100644 |
--- a/content/browser/service_worker/service_worker_url_request_job.h |
+++ b/content/browser/service_worker/service_worker_url_request_job.h |
@@ -33,12 +33,12 @@ |
namespace net { |
class IOBuffer; |
-} |
+} // namespace net |
namespace storage { |
class BlobDataHandle; |
class BlobStorageContext; |
-} |
+} // namespace storage |
namespace content { |
@@ -95,6 +95,7 @@ class CONTENT_EXPORT ServiceWorkerURLRequestJob : public net::URLRequestJob { |
RequestContextFrameType frame_type, |
scoped_refptr<ResourceRequestBodyImpl> body, |
ServiceWorkerFetchType fetch_type, |
+ const MojoURLLoaderFactoryGetter& url_loader_factory_getter, |
Delegate* delegate); |
~ServiceWorkerURLRequestJob() override; |
@@ -284,6 +285,10 @@ class CONTENT_EXPORT ServiceWorkerURLRequestJob : public net::URLRequestJob { |
bool worker_already_activated_ = false; |
EmbeddedWorkerStatus initial_worker_status_ = EmbeddedWorkerStatus::STOPPED; |
+ // This is used for Navigation Preload. It may be a null callback in some |
+ // unittests or for Foreign Fetch. |
+ const MojoURLLoaderFactoryGetter url_loader_factory_getter_; |
+ |
base::WeakPtrFactory<ServiceWorkerURLRequestJob> weak_factory_; |
DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLRequestJob); |