Index: content/browser/service_worker/service_worker_provider_host.h |
diff --git a/content/browser/service_worker/service_worker_provider_host.h b/content/browser/service_worker/service_worker_provider_host.h |
index 24d33e0711e31909defc5cce81f9af920bb3328b..8dd8fe16b56c3044171d36843cd362c2ccf91ae5 100644 |
--- a/content/browser/service_worker/service_worker_provider_host.h |
+++ b/content/browser/service_worker/service_worker_provider_host.h |
@@ -31,6 +31,7 @@ class BlobStorageContext; |
namespace content { |
+class ResourceMessageFilter; |
class ResourceRequestBodyImpl; |
class ServiceWorkerContextCore; |
class ServiceWorkerDispatcherHost; |
@@ -232,6 +233,14 @@ class CONTENT_EXPORT ServiceWorkerProviderHost |
int frame_routing_id, |
ServiceWorkerDispatcherHost* dispatcher_host); |
+ // PlzNavigate |
+ // Keeps the ResourceMessageFilter for navigation preload. |
+ void set_resource_filter_for_navigation_preload( |
+ scoped_refptr<ResourceMessageFilter> filter); |
+ ResourceMessageFilter* resource_filter_for_navigation_preload() { |
+ return resource_filter_for_navigation_preload_.get(); |
+ } |
+ |
// Sends event messages to the renderer. Events for the worker are queued up |
// until the worker thread id is known via SetReadyToSendMessagesToWorker(). |
void SendUpdateFoundMessage( |
@@ -374,6 +383,8 @@ class CONTENT_EXPORT ServiceWorkerProviderHost |
std::vector<base::Closure> queued_events_; |
+ scoped_refptr<ResourceMessageFilter> resource_filter_for_navigation_preload_; |
+ |
DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); |
}; |