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..715e38cc7d7205d5b37dba31d529c64ed74c01f7 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 process_launched() const; |
|
jam
2013/05/28 14:28:30
to be clear: this should be inlined like the above
shatch
2013/05/28 17:52:13
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); |
| }; |