| 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 3b2d51d09503228da917c80906dcca097ed9c15d..3620ed06fd2326cb9496ad91909dc9c250e4c3d0 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|.
|
| @@ -182,11 +172,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_;
|
| @@ -197,7 +182,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_;
|
|
|