| Index: content/browser/service_worker/service_worker_version.h
|
| diff --git a/content/browser/service_worker/service_worker_version.h b/content/browser/service_worker/service_worker_version.h
|
| index 46b75bd6866030d1e9edf3b4756be284e10b1adf..3fae7d9cfde0b406c5c4ec9cbd2ad4a9955a7521 100644
|
| --- a/content/browser/service_worker/service_worker_version.h
|
| +++ b/content/browser/service_worker/service_worker_version.h
|
| @@ -19,6 +19,7 @@ class EmbeddedWorkerInstance;
|
| class EmbeddedWorkerRegistry;
|
| class ServiceWorkerProviderHost;
|
| class ServiceWorkerRegistration;
|
| +struct ServiceWorkerFetchRequest;
|
|
|
| // This class corresponds to a specific version of a ServiceWorker
|
| // script for a given pattern. When a script is upgraded, there may be
|
| @@ -69,6 +70,11 @@ class CONTENT_EXPORT ServiceWorkerVersion
|
| void StartWorker();
|
| void StopWorker();
|
|
|
| + // Sends fetch event to the associated embedded worker.
|
| + // This immediately returns false if the worker is not running
|
| + // or sending a message to the child process fails.
|
| + bool DispatchFetchEvent(const ServiceWorkerFetchRequest& request);
|
| +
|
| // Called when this version is associated to a provider host.
|
| // Non-null |provider_host| must be given.
|
| void OnAssociateProvider(ServiceWorkerProviderHost* provider_host);
|
|
|