Chromium Code Reviews| Index: content/public/browser/render_process_host.h |
| diff --git a/content/public/browser/render_process_host.h b/content/public/browser/render_process_host.h |
| index 6a3b7c9ee207829b69358c9b95b407efe492e83f..97595f18ea206f1836685b20686f878185384eeb 100644 |
| --- a/content/public/browser/render_process_host.h |
| +++ b/content/public/browser/render_process_host.h |
| @@ -356,6 +356,13 @@ class CONTENT_EXPORT RenderProcessHost : public IPC::Sender, |
| // any RenderViewHosts that are swapped out. |
| size_t GetActiveViewCount(); |
| + // Posts |task|, if this RenderProcessHost is ready or when it becomes ready |
| + // (see RenderProcessHost::IsReady method). The |task| might not run at all |
| + // (e.g. if |render_process_host| is destroyed before becoming ready). This |
| + // function can only be called on the browser's UI thread (and the |task| will |
| + // be posted back on the UI thread). |
| + void PostTaskWhenProcessIsReady(base::OnceClosure task); |
|
ncarter (slow)
2017/05/12 21:56:02
I bet we could implement RenderViewHostImpl::PostR
Łukasz Anforowicz
2017/05/16 16:37:25
Good idea. Done.
|
| + |
| // Static management functions ----------------------------------------------- |
| // Flag to run the renderer in process. This is primarily |