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

Unified Diff: content/browser/loader/navigation_url_loader_impl_core.h

Issue 1294243004: PlzNavigate: Make ServiceWorker work with PlzNavigate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 5 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/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 8a93469c93b43768e84904225074165b6d4036b9..5a479d02be76f55571416ad3a1023f478f1666be 100644
--- a/content/browser/loader/navigation_url_loader_impl_core.h
+++ b/content/browser/loader/navigation_url_loader_impl_core.h
@@ -23,6 +23,8 @@ class NavigationResourceHandler;
class ResourceContext;
class ResourceHandler;
class ResourceRequestBody;
+class ServiceWorkerContext;
+class ServiceWorkerContextWrapper;
class StreamHandle;
struct ResourceResponse;
@@ -35,7 +37,8 @@ class NavigationURLLoaderImplCore {
// Creates a new NavigationURLLoaderImplCore that forwards signals back to
// |loader| on the UI thread.
explicit NavigationURLLoaderImplCore(
- const base::WeakPtr<NavigationURLLoaderImpl>& loader);
+ const base::WeakPtr<NavigationURLLoaderImpl>& loader,
+ ServiceWorkerContext* service_worker_context);
~NavigationURLLoaderImplCore();
// Starts the request.
@@ -63,6 +66,7 @@ class NavigationURLLoaderImplCore {
private:
base::WeakPtr<NavigationURLLoaderImpl> loader_;
NavigationResourceHandler* resource_handler_;
+ scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImplCore);
};

Powered by Google App Engine
This is Rietveld 408576698