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 9abde460397710cf4f1bf1d802260d5b793b97de..510e72ba9e800c7505ae21b6561399ac664b4fc5 100644 |
--- a/content/browser/service_worker/embedded_worker_instance.h |
+++ b/content/browser/service_worker/embedded_worker_instance.h |
@@ -76,7 +76,6 @@ class CONTENT_EXPORT EmbeddedWorkerInstance { |
const GURL& scope, |
const GURL& script_url, |
bool pause_after_download, |
- const std::vector<int>& possible_process_ids, |
const StatusCallback& callback); |
// Stops the worker. It is invalid to call this when the worker is |
@@ -91,12 +90,6 @@ class CONTENT_EXPORT EmbeddedWorkerInstance { |
void ResumeAfterDownload(); |
- // Add or remove |process_id| to the internal process set where this |
- // worker can be started. |
- void AddProcessReference(int process_id); |
- void ReleaseProcessReference(int process_id); |
- bool HasProcessToRun() const { return !process_refs_.empty(); } |
- |
int embedded_worker_id() const { return embedded_worker_id_; } |
Status status() const { return status_; } |
int process_id() const { return process_id_; } |
@@ -113,9 +106,6 @@ class CONTENT_EXPORT EmbeddedWorkerInstance { |
friend class EmbeddedWorkerRegistry; |
FRIEND_TEST_ALL_PREFIXES(EmbeddedWorkerInstanceTest, StartAndStop); |
- FRIEND_TEST_ALL_PREFIXES(EmbeddedWorkerInstanceTest, SortProcesses); |
- |
- typedef std::map<int, int> ProcessRefMap; |
// Constructor is called via EmbeddedWorkerRegistry::CreateWorker(). |
// This instance holds a ref of |registry|. |
@@ -185,11 +175,6 @@ class CONTENT_EXPORT EmbeddedWorkerInstance { |
int line_number, |
const GURL& source_url); |
- // Chooses a list of processes to try to start this worker in, ordered by how |
- // many clients are currently in those processes. |
- std::vector<int> SortProcesses( |
- const std::vector<int>& possible_process_ids) const; |
- |
base::WeakPtr<ServiceWorkerContextCore> context_; |
scoped_refptr<EmbeddedWorkerRegistry> registry_; |
const int embedded_worker_id_; |
@@ -200,7 +185,6 @@ class CONTENT_EXPORT EmbeddedWorkerInstance { |
int thread_id_; |
int worker_devtools_agent_route_id_; |
- ProcessRefMap process_refs_; |
ListenerList listener_list_; |
base::WeakPtrFactory<EmbeddedWorkerInstance> weak_factory_; |