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

Unified Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2857213005: PlzNavigate: implement process reuse for ServiceWorkers (Closed)
Patch Set: Fixed compilation error Created 3 years, 7 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/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.

Powered by Google App Engine
This is Rietveld 408576698