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

Unified Diff: content/public/browser/web_ui_message_handler.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/public/browser/web_ui_message_handler.h
diff --git a/content/public/browser/web_ui_message_handler.h b/content/public/browser/web_ui_message_handler.h
index ed0117931f59bc8cc8db1b135a2c606aea0c2015..50da276ef83fcf1760ec49f6b80866b2c0a9c9aa 100644
--- a/content/public/browser/web_ui_message_handler.h
+++ b/content/public/browser/web_ui_message_handler.h
@@ -106,6 +106,9 @@ class CONTENT_EXPORT WebUIMessageHandler {
// Called when a RenderView is reused to display a page (i.e. reload).
void RenderViewReused();
+ // Called when the owning RenderFrameHost has started swapping out.
+ void RenderFrameHostSwappingOut();
Charlie Reis 2016/06/06 21:09:52 Kind of unfortunate to be including something abou
Dan Beam 2016/06/06 23:41:46 i think it's easy to avoid
tommycli 2016/06/07 17:46:07 Done.
+
// TODO(dbeam): disallow JavaScript when a renderer process crashes.
// http://crbug.com/610450
« content/browser/webui/web_ui_impl.cc ('K') | « content/browser/webui/web_ui_message_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698