Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: content/browser/service_worker/service_worker_url_request_job.h

Issue 2410333006: Implement ServiceWorkerFetchDispatcher::MaybeStartNavigationPreload(). (Closed)
Patch Set: add comment in service_worker_url_request_job.h Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698