| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_JS_BEFORE_UNLOAD_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_JS_BEFORE_UNLOAD_HANDLER_H_ |
| 6 #define CHROME_BROWSER_JS_BEFORE_UNLOAD_HANDLER_H_ | 6 #define CHROME_BROWSER_JS_BEFORE_UNLOAD_HANDLER_H_ |
| 7 | 7 |
| 8 // This will display a modal dialog box with a header and footer asking the | 8 // This will display a modal dialog box with a header and footer asking the |
| 9 // the user if they wish to navigate away from a page, with additional text | 9 // the user if they wish to navigate away from a page, with additional text |
| 10 // |message_text| between the header and footer. The users response is | 10 // |message_text| between the header and footer. The users response is |
| 11 // returned to the renderer using |reply_msg|. | 11 // returned to the renderer using |reply_msg|. |
| 12 void RunBeforeUnloadDialog(WebContents* web_contents, | 12 void RunBeforeUnloadDialog(WebContents* web_contents, |
| 13 const GURL& frame_url, |
| 13 const std::wstring& message_text, | 14 const std::wstring& message_text, |
| 14 IPC::Message* reply_msg); | 15 IPC::Message* reply_msg); |
| 15 | 16 |
| 16 #endif // CHROME_BROWSER_JS_BEFORE_UNLOAD_HANDLER_H_ | 17 #endif // CHROME_BROWSER_JS_BEFORE_UNLOAD_HANDLER_H_ |
| 17 | 18 |
| OLD | NEW |