| 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 497f74320c67ec52fe96526c4d2868787922cc02..47bad3fabb5392642f9d2c304c409a563557ffe4 100644
|
| --- a/content/browser/service_worker/service_worker_version.h
|
| +++ b/content/browser/service_worker/service_worker_version.h
|
| @@ -121,13 +121,10 @@ class CONTENT_EXPORT ServiceWorkerVersion
|
| void StartWorker(const StatusCallback& callback);
|
|
|
| // Starts an embedded worker for this version.
|
| - // |potential_process_ids| is a list of processes in which to start the
|
| - // worker.
|
| + // |pause_after_download| is a flag to tell worker to pause after download.
|
| // This returns OK (success) if the worker is already running.
|
| - void StartWorkerWithCandidateProcesses(
|
| - const std::vector<int>& potential_process_ids,
|
| - bool pause_after_download,
|
| - const StatusCallback& callback);
|
| + void StartWorker(bool pause_after_download,
|
| + const StatusCallback& callback);
|
|
|
| // Stops an embedded worker for this version.
|
| // This returns OK (success) if the worker is already stopped.
|
| @@ -202,9 +199,6 @@ class CONTENT_EXPORT ServiceWorkerVersion
|
| void AddProcessToWorker(int process_id);
|
| void RemoveProcessFromWorker(int process_id);
|
|
|
| - // Returns true if this has at least one process to run.
|
| - bool HasProcessToRun() const;
|
| -
|
| // Adds and removes |provider_host| as a controllee of this ServiceWorker.
|
| // A potential controllee is a host having the version as its .installing
|
| // or .waiting version.
|
| @@ -213,6 +207,9 @@ class CONTENT_EXPORT ServiceWorkerVersion
|
| void AddPotentialControllee(ServiceWorkerProviderHost* provider_host);
|
| void RemovePotentialControllee(ServiceWorkerProviderHost* provider_host);
|
|
|
| + // Notifies process manager about the callback pending renderer processes.
|
| + void AddPendingProcesses(const std::vector<int>& pending_processes);
|
| +
|
| // Returns if it has controllee.
|
| bool HasControllee() const { return !controllee_map_.empty(); }
|
|
|
|
|