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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 256233002: Ensure that modal dialogs from subframes can be cleaned up correctly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix memory leak. Created 6 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: content/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index d00938e41bdaece24ecc384337a155384d442d59..68c71de98b63ae9420e30ab9c1975353474c23d3 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -666,8 +666,11 @@ class CONTENT_EXPORT WebContentsImpl
// watching |web_contents|. No-op if there is no such observer.
void RemoveDestructionObserver(WebContentsImpl* web_contents);
- // Callback function when showing JavaScript dialogs.
- void OnDialogClosed(RenderFrameHost* rfh,
+ // Callback function when showing JavaScript dialogs. Takes in a routing ID
+ // pair to identify the RenderFrameHost that opened the dialog, because it's
+ // possible for the RenderFrameHost to be deleted by the time this is called.
+ void OnDialogClosed(int render_process_id,
+ int render_frame_id,
IPC::Message* reply_msg,
bool dialog_was_suppressed,
bool success,
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698