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 dcdf1b62f33d09a1d86e477103265213757ffcb8..e0db0ff63b454c89cd3e6af09bcd929b1c35787c 100644 |
--- a/content/browser/service_worker/service_worker_version.h |
+++ b/content/browser/service_worker/service_worker_version.h |
@@ -118,6 +118,14 @@ 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. |
+ // This returns OK (success) if the worker is already running. |
+ void StartWorkerWithCandidateProcesses( |
+ const std::vector<int>& potential_process_ids, |
+ const StatusCallback& callback); |
+ |
+ // Starts an embedded worker for this version. |
// This returns OK (success) if the worker is already stopped. |
void StopWorker(const StatusCallback& callback); |
@@ -212,6 +220,12 @@ class CONTENT_EXPORT ServiceWorkerVersion |
virtual ~ServiceWorkerVersion(); |
+ void RunStartWorkerCallbacksOnError(ServiceWorkerStatusCode status); |
+ |
+ void DispatchInstallEventAfterStartWorker(int active_version_id, |
+ const StatusCallback& callback); |
+ void DispatchActivateEventAfterStartWorker(const StatusCallback& callback); |
+ |
// Message handlers. |
void OnGetClientDocuments(int request_id); |
void OnActivateEventFinished(int request_id, |