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

Side by Side Diff: chrome/browser/js_before_unload_handler.h

Issue 39163: Make JavaScript alerts reflect the URL of the frame they came from, not the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_view_unittest.cc ('k') | chrome/browser/js_before_unload_handler_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698