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 86c70711282a2ec7c9e7aa78d9954b27387c7f57..3a50235bf1ebe5288e6c273c9e3eb6e371515c8e 100644 |
--- a/content/browser/webui/web_ui_impl.h |
+++ b/content/browser/webui/web_ui_impl.h |
@@ -25,13 +25,13 @@ class CONTENT_EXPORT WebUIImpl : public WebUI, |
WebUIImpl(WebContents* contents, const std::string& frame_name); |
~WebUIImpl() override; |
- // Called by WebContentsImpl when the RenderView is first created. This is |
- // *not* called for every page load because in some cases |
- // RenderFrameHostManager will reuse RenderView instances. |
+ // Should be called whenever a navigation causes a change in the |
+ // WebUI/RenderView pair of instances: a WebUI is created for an existing |
+ // RenderView, vice-versa or if both have just been created. |
Dan Beam
2015/11/18 18:10:58
revert to old comment or explain to me why this is
carlosk
2015/11/18 20:02:01
This change addresses a recent request by creis@ [
Dan Beam
2015/11/20 00:07:59
then how about:
// Called when a RenderView is cr
carlosk
2015/11/20 12:21:11
Done (with updates).
|
void RenderViewCreated(RenderViewHost* render_view_host); |
- // Called by WebContentsImpl when the RenderView is reused. This happens on |
- // refresh or when the main page is navigated within the same SiteInstance. |
+ // Should be called when a navigation reuses the exact same WebUI/RenderView |
+ // pair of instances. |
Dan Beam
2015/11/18 18:10:58
same
carlosk
2015/11/18 20:02:01
... (continued from above)
Following the same log
Dan Beam
2015/11/20 00:07:59
// Called when a renderer is reused for the same W
carlosk
2015/11/20 12:21:10
Done (with minor updates).
|
void RenderViewReused(RenderViewHost* render_view_host, bool was_main_frame); |
// WebUI implementation: |