Index: content/browser/frame_host/render_frame_host_impl.h |
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h |
index 79bf8c2ceb98f5096f96dd259df374c638539354..be1cefbfcb0ce337fbaaa5393856b56abaaa3045 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.h |
+++ b/content/browser/frame_host/render_frame_host_impl.h |
@@ -955,6 +955,11 @@ class CONTENT_EXPORT RenderFrameHostImpl |
// Called by |beforeunload_timeout_| when the beforeunload timeout fires. |
void BeforeUnloadTimeout(); |
+ // Called when a navigation commits succesfully to |url|. This will update |
+ // |last_committed_site_url_| if it's not equal to the site url corresponding |
+ // to |url|. |
+ void SetLastCommittedSiteUrl(const GURL& url); |
+ |
// For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a |
// refcount that calls Shutdown when it reaches zero. This allows each |
// RenderFrameHostManager to just care about RenderFrameHosts, while ensuring |
@@ -998,6 +1003,9 @@ class CONTENT_EXPORT RenderFrameHostImpl |
// Track this frame's last committed origin. |
url::Origin last_committed_origin_; |
+ // Track the site URL of the last site we committed succesfully. |
Charlie Reis
2017/05/18 00:58:34
nit: successfully
(Maybe also mention: as obtained
clamy
2017/05/22 16:59:52
Done.
|
+ GURL last_committed_site_url_; |
+ |
// The most recent non-error URL to commit in this frame. Remove this in |
// favor of GetLastCommittedURL() once PlzNavigate is enabled or cross-process |
// transfers work for net errors. See https://crbug.com/588314. |