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

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

Issue 2877203002: Don't allow RenderFrames to be created during WebContents destruction. (Closed)
Patch Set: Initial patch 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
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_frame_host_delegate.h
diff --git a/content/browser/frame_host/render_frame_host_delegate.h b/content/browser/frame_host/render_frame_host_delegate.h
index 92f6c2b1f1026187cf600b91cef44bd180fa0e5e..081986b44116e3abf4105484ac082401c7eb6b0f 100644
--- a/content/browser/frame_host/render_frame_host_delegate.h
+++ b/content/browser/frame_host/render_frame_host_delegate.h
@@ -301,6 +301,10 @@ class CONTENT_EXPORT RenderFrameHostDelegate {
GetJavaRenderFrameHostDelegate();
#endif
+ // Whether the delegate is being destroyed, in which case the RenderFrameHost
+ // should not be asked to create a RenderFrame.
+ virtual bool IsBeingDestroyed() const;
+
protected:
virtual ~RenderFrameHostDelegate() {}
};
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698