Index: content/browser/loader/navigation_url_loader_impl_core.h |
diff --git a/content/browser/loader/navigation_url_loader_impl_core.h b/content/browser/loader/navigation_url_loader_impl_core.h |
index 46c46c207558bed99de5b31c47975c0dbd1aece2..1a7a152c1dd7faa7b00f5a54763c7be813e7cbf5 100644 |
--- a/content/browser/loader/navigation_url_loader_impl_core.h |
+++ b/content/browser/loader/navigation_url_loader_impl_core.h |
@@ -10,6 +10,7 @@ |
#include "base/macros.h" |
#include "base/memory/weak_ptr.h" |
#include "content/browser/loader/navigation_url_loader_impl.h" |
+#include "content/common/service_worker/service_worker_status_code.h" |
namespace net { |
class URLRequest; |
@@ -24,7 +25,8 @@ class NavigationData; |
class ResourceContext; |
class ResourceHandler; |
class ResourceRequestBody; |
-class ServiceWorkerNavigationHandleCore; |
+class ServiceWorkerContextWrapper; |
+class ServiceWorkerRegistration; |
class StreamHandle; |
struct ResourceResponse; |
@@ -42,7 +44,7 @@ class NavigationURLLoaderImplCore { |
// Starts the request. |
void Start(ResourceContext* resource_context, |
- ServiceWorkerNavigationHandleCore* service_worker_handle_core, |
+ ServiceWorkerContextWrapper* service_worker_context_wrapper, |
std::unique_ptr<NavigationRequestInfo> request_info); |
// Follows the current pending redirect. |
@@ -68,8 +70,18 @@ class NavigationURLLoaderImplCore { |
void NotifyRequestFailed(bool in_cache, int net_error); |
private: |
+ // Called when done checking whether the navigation has a ServiceWorker |
+ // registered for it. |
+ void OnServiceWorkerChecksPerformed( |
+ ServiceWorkerStatusCode status, |
+ const scoped_refptr<ServiceWorkerRegistration>& registration); |
+ |
base::WeakPtr<NavigationURLLoaderImpl> loader_; |
NavigationResourceHandler* resource_handler_; |
+ std::unique_ptr<NavigationRequestInfo> request_info_; |
+ ResourceContext* resource_context_; |
+ |
+ base::WeakPtrFactory<NavigationURLLoaderImplCore> factory_; |
DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImplCore); |
}; |