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 2c14eb1b862676854d13107880525399a5fdb004..3d170c0ab11e50e621611ee3612756f7bdbf0e0e 100644 |
--- a/content/browser/service_worker/service_worker_request_handler.h |
+++ b/content/browser/service_worker/service_worker_request_handler.h |
@@ -33,6 +33,7 @@ class ResourceContext; |
class ResourceRequestBody; |
class ServiceWorkerContextCore; |
class ServiceWorkerContextWrapper; |
+class ServiceWorkerNavigationHandleCore; |
class ServiceWorkerProviderHost; |
struct ResourceResponseInfo; |
@@ -41,6 +42,19 @@ struct ResourceResponseInfo; |
class CONTENT_EXPORT ServiceWorkerRequestHandler |
: public base::SupportsUserData::Data { |
public: |
+ // PlzNavigate |
+ // Attaches a newly created handler if the given |request| needs to be handled |
+ // by ServiceWorker. |
+ static void InitializeForNavigation( |
+ net::URLRequest* request, |
+ ServiceWorkerNavigationHandleCore* navigation_handle_core, |
+ storage::BlobStorageContext* blob_storage_context, |
+ bool skip_service_worker, |
+ ResourceType resource_type, |
+ RequestContextType request_context_type, |
+ RequestContextFrameType frame_type, |
+ scoped_refptr<ResourceRequestBody> body); |
+ |
// Attaches a newly created handler if the given |request| needs to |
// be handled by ServiceWorker. |
// TODO(kinuko): While utilizing UserData to attach data to URLRequest |