| 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 cc4f43502b0d9ee7419e13ba4d0953a1cfbc1711..604ff78c2487874571197bb65510993f84d8bd37 100644
|
| --- a/content/browser/web_contents/web_contents_impl.h
|
| +++ b/content/browser/web_contents/web_contents_impl.h
|
| @@ -665,8 +665,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,
|
|
|