Chromium Code Reviews| Index: content/browser/worker_host/worker_process_host.h |
| diff --git a/content/browser/worker_host/worker_process_host.h b/content/browser/worker_host/worker_process_host.h |
| index dd1d58fe322c9ac7a5e1a7ea045497247cda5b4f..d5ea091e0f6dc5bdc83e8afa7e333a26e94d8033 100644 |
| --- a/content/browser/worker_host/worker_process_host.h |
| +++ b/content/browser/worker_host/worker_process_host.h |
| @@ -158,6 +158,9 @@ class WorkerProcessHost : public BrowserChildProcessHostDelegate, |
| // Terminates the given worker, i.e. based on a UI action. |
| CONTENT_EXPORT void TerminateWorker(int worker_route_id); |
| + // Callers can reduce the WorkerProcess' priority. |
| + void SetBackgrounded(bool backgrounded); |
| + |
| CONTENT_EXPORT const ChildProcessData& GetData(); |
| typedef std::list<WorkerInstance> Instances; |
| @@ -167,6 +170,8 @@ class WorkerProcessHost : public BrowserChildProcessHostDelegate, |
| return resource_context_; |
| } |
| + bool IsProcessLaunched() const; |
|
jam
2013/05/09 18:02:57
nit: this is really just a getter, so give it a un
shatch
2013/05/09 22:42:49
Done.
|
| + |
| protected: |
| friend class WorkerServiceImpl; |
| @@ -221,6 +226,7 @@ class WorkerProcessHost : public BrowserChildProcessHostDelegate, |
| scoped_refptr<WorkerMessageFilter> worker_message_filter_; |
| scoped_ptr<BrowserChildProcessHostImpl> process_; |
| + bool process_launched_; |
| DISALLOW_COPY_AND_ASSIGN(WorkerProcessHost); |
| }; |