Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Unified Diff: content/public/browser/render_process_host.h

Issue 2857263003: Task Manager should listen to WebContentsObserver::RenderFrameCreated. (Closed)
Patch Set: Tweaked the comments as suggested in the CR feedback Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/render_frame_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+
// Static management functions -----------------------------------------------
// Flag to run the renderer in process. This is primarily
« no previous file with comments | « content/public/browser/render_frame_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698