Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_UTILS_H_ | |
| 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_UTILS_H_ | |
| 7 | |
| 8 #include "base/callback.h" | |
| 9 #include "content/common/content_export.h" | |
| 10 | |
| 11 namespace content { | |
| 12 | |
| 13 class RenderProcessHost; | |
| 14 | |
| 15 // Posts |task|, if |render_process_host| is ready or when it becomes ready (see | |
| 16 // RenderProcessHost::IsReady method). The |task| might not run at all (e.g. if | |
| 17 // |render_process_host| is destroyed before becoming ready). This function can | |
| 18 // only be called on the browser's UI thread (and the |task| will be posted back | |
| 19 // on the UI thread). | |
| 20 CONTENT_EXPORT void PostTaskWhenRenderProcessHostIsReady( | |
| 21 RenderProcessHost* render_process_host, | |
| 22 base::OnceClosure task); | |
|
Łukasz Anforowicz
2017/05/06 00:16:45
Also - please shout if you think I should add a te
| |
| 23 | |
| 24 } // namespace content | |
| 25 | |
| 26 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_UTILS_H_ | |
| OLD | NEW |