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

Unified Diff: third_party/WebKit/public/platform/WebPrerenderingSupport.h

Issue 1900583002: Abandon prerenders upon render thread shutdown. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: third_party/WebKit/public/platform/WebPrerenderingSupport.h
diff --git a/third_party/WebKit/public/platform/WebPrerenderingSupport.h b/third_party/WebKit/public/platform/WebPrerenderingSupport.h
index d1c553353050b0033feb042b2211de44f023ff7d..5d51c50be56070e0765a300df79439924beb0ba7 100644
--- a/third_party/WebKit/public/platform/WebPrerenderingSupport.h
+++ b/third_party/WebKit/public/platform/WebPrerenderingSupport.h
@@ -54,6 +54,10 @@ public:
// wanted, and we may end up using it after, for instance, a short redirect chain.
virtual void abandon(const WebPrerender&) = 0;
+ // The renderer is shutting down, the prerendering layer is not allowed to
+ // access Blink objects after this notification.
+ virtual void detachRenderer() = 0;
+
protected:
WebPrerenderingSupport() { }
virtual ~WebPrerenderingSupport() { }

Powered by Google App Engine
This is Rietveld 408576698