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

Unified Diff: content/browser/webui/web_ui_impl.h

Issue 2041993002: WebUI: Fix lifecycle-bug when RenderFrameHost is swapped out (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/browser/webui/web_ui_impl.h
diff --git a/content/browser/webui/web_ui_impl.h b/content/browser/webui/web_ui_impl.h
index 268c7576e80e1bb3ee9ce5b38853f5035fbb986e..31857a533935328ef8ce7ed7d8b4747a9a42baae 100644
--- a/content/browser/webui/web_ui_impl.h
+++ b/content/browser/webui/web_ui_impl.h
@@ -36,6 +36,9 @@ class CONTENT_EXPORT WebUIImpl : public WebUI,
// Called when a RenderView is reused for the same WebUI type (i.e. reload).
void RenderViewReused(RenderViewHost* render_view_host, bool was_main_frame);
+ // Called when the owning RenderFrameHost has started swapping out.
+ void RenderFrameHostSwappingOut();
+
// WebUI implementation:
WebContents* GetWebContents() const override;
WebUIController* GetController() const override;
« no previous file with comments | « content/browser/frame_host/render_frame_host_manager_browsertest.cc ('k') | content/browser/webui/web_ui_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698