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

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

Issue 2446553002: Support Service Worker NavigationPreload with PlzNavigate. (Closed)
Patch Set: remove unnecessary comment 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_navigation_handle_core.h
diff --git a/content/browser/service_worker/service_worker_navigation_handle_core.h b/content/browser/service_worker/service_worker_navigation_handle_core.h
index 88e5013c9d20ac5fb2b5d735023f84eab912e250..f9458d975986890ed8da26377f8a7625945efb51 100644
--- a/content/browser/service_worker/service_worker_navigation_handle_core.h
+++ b/content/browser/service_worker/service_worker_navigation_handle_core.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
+#include "content/common/service_worker/service_worker_types.h"
namespace content {
@@ -28,7 +29,8 @@ class ServiceWorkerNavigationHandleCore {
public:
ServiceWorkerNavigationHandleCore(
base::WeakPtr<ServiceWorkerNavigationHandle> ui_handle,
- ServiceWorkerContextWrapper* context_wrapper);
+ ServiceWorkerContextWrapper* context_wrapper,
+ const MojoURLLoaderFactoryGetter& url_loader_factory_getter);
~ServiceWorkerNavigationHandleCore();
// Called when a ServiceWorkerProviderHost was pre-created for the navigation
@@ -44,11 +46,15 @@ class ServiceWorkerNavigationHandleCore {
ServiceWorkerContextWrapper* context_wrapper() const {
return context_wrapper_.get();
}
+ MojoURLLoaderFactoryGetter url_loader_factory_getter() {
+ return url_loader_factory_getter_;
+ }
private:
std::unique_ptr<ServiceWorkerProviderHost> precreated_host_;
scoped_refptr<ServiceWorkerContextWrapper> context_wrapper_;
base::WeakPtr<ServiceWorkerNavigationHandle> ui_handle_;
+ MojoURLLoaderFactoryGetter url_loader_factory_getter_;
DISALLOW_COPY_AND_ASSIGN(ServiceWorkerNavigationHandleCore);
};

Powered by Google App Engine
This is Rietveld 408576698