| Index: content/browser/service_worker/embedded_worker_instance.h
|
| diff --git a/content/browser/service_worker/embedded_worker_instance.h b/content/browser/service_worker/embedded_worker_instance.h
|
| index fb0fe19bb6cff3b6b4a566dc96d1c789df62dc56..5a992a2d4ff7528f0793fb1f0878b7cb553871c7 100644
|
| --- a/content/browser/service_worker/embedded_worker_instance.h
|
| +++ b/content/browser/service_worker/embedded_worker_instance.h
|
| @@ -19,6 +19,7 @@ class GURL;
|
| namespace content {
|
|
|
| class EmbeddedWorkerRegistry;
|
| +struct ServiceWorkerFetchRequest;
|
|
|
| // This gives an interface to control one EmbeddedWorker instance, which
|
| // may be 'in-waiting' or running in one of the child processes added by
|
| @@ -47,6 +48,11 @@ class CONTENT_EXPORT EmbeddedWorkerInstance {
|
| // IPC couldn't be sent to the worker.
|
| bool Stop();
|
|
|
| + // Sends |request| to the embedded worker running in the child process.
|
| + // This returns false if sending IPC fails.
|
| + // It is invalid to call this while the worker is not in RUNNING status.
|
| + bool SendFetchRequest(const ServiceWorkerFetchRequest& request);
|
| +
|
| // Add or remove |process_id| to the internal process set where this
|
| // worker can be started.
|
| void AddProcessReference(int process_id);
|
|
|