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

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

Issue 23784005: Provide observer functions for NOTIFICATION_WEB_CONTENTS_CONNECTED, NOTIFICATION_WEB_CONTENTS_SWAPP… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better name Created 7 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
« no previous file with comments | « content/public/browser/notification_types.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/web_contents_observer.h
diff --git a/content/public/browser/web_contents_observer.h b/content/public/browser/web_contents_observer.h
index d46f3152968ece8a631fbf7250443e37f7857a12..8593faa729b889d9963dfb5e4b184c7f231e93ca 100644
--- a/content/public/browser/web_contents_observer.h
+++ b/content/public/browser/web_contents_observer.h
@@ -63,6 +63,12 @@ class CONTENT_EXPORT WebContentsObserver : public IPC::Listener,
// invoked.
virtual void RenderProcessGone(base::TerminationStatus status) {}
+ // This method is invoked when a WebContents swaps its render view host with
+ // another one, possibly changing processes. The RenderViewHost that has
+ // been replaced is in |old_render_view_host|, which is NULL if the old RVH
+ // was shut down.
+ virtual void RenderViewHostSwapped(RenderViewHost* old_render_view_host) {}
+
// This method is invoked after the WebContents decided which RenderViewHost
// to use for the next navigation, but before the navigation starts.
virtual void AboutToNavigateRenderView(
« no previous file with comments | « content/public/browser/notification_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698