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

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

Issue 1369603003: Remove 2-stage RenderWidget initialization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use_offscreen_contexts
Patch Set: rebase Created 5 years, 3 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
Index: content/public/browser/render_process_host_observer.h
diff --git a/content/public/browser/render_process_host_observer.h b/content/public/browser/render_process_host_observer.h
index 9f11c7b70b1a48c8a0135d6441037ec6499279ab..2a0391329984da02ce75cc545f5ea1500aefe581 100644
--- a/content/public/browser/render_process_host_observer.h
+++ b/content/public/browser/render_process_host_observer.h
@@ -17,6 +17,11 @@ class RenderProcessHost;
// in RenderProcessHost lifecycle events.
class CONTENT_EXPORT RenderProcessHostObserver {
public:
+ // This method is invoked when the process was launched and the channel was
+ // connected. This is the earliest time it is safe to call Shutdown on the
+ // RenderProcessHost and get RenderProcessExited notifications.
+ virtual void RenderProcessReady(RenderProcessHost* host) {}
+
// This method is invoked when the process is going to exit and should not be
// used for further navigations. Note that this is a COURTESY callback, not
// guaranteed to be called for any particular process. Because this is the

Powered by Google App Engine
This is Rietveld 408576698