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

Side by Side Diff: content/shell/browser/layout_test/layout_test_javascript_dialog_manager.h

Issue 1714573002: Remove the ability of webpages to specify strings for the onbeforeunload dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_JAVASCRIPT_DIALOG_MANAGER_ H_ 5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_JAVASCRIPT_DIALOG_MANAGER_ H_
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_JAVASCRIPT_DIALOG_MANAGER_ H_ 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_JAVASCRIPT_DIALOG_MANAGER_ H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 11 matching lines...) Expand all
22 void RunJavaScriptDialog(WebContents* web_contents, 22 void RunJavaScriptDialog(WebContents* web_contents,
23 const GURL& origin_url, 23 const GURL& origin_url,
24 const std::string& accept_lang, 24 const std::string& accept_lang,
25 JavaScriptMessageType javascript_message_type, 25 JavaScriptMessageType javascript_message_type,
26 const base::string16& message_text, 26 const base::string16& message_text,
27 const base::string16& default_prompt_text, 27 const base::string16& default_prompt_text,
28 const DialogClosedCallback& callback, 28 const DialogClosedCallback& callback,
29 bool* did_suppress_message) override; 29 bool* did_suppress_message) override;
30 30
31 void RunBeforeUnloadDialog(WebContents* web_contents, 31 void RunBeforeUnloadDialog(WebContents* web_contents,
32 const base::string16& message_text,
33 bool is_reload, 32 bool is_reload,
34 const DialogClosedCallback& callback) override; 33 const DialogClosedCallback& callback) override;
35 34
36 private: 35 private:
37 DISALLOW_COPY_AND_ASSIGN(LayoutTestJavaScriptDialogManager); 36 DISALLOW_COPY_AND_ASSIGN(LayoutTestJavaScriptDialogManager);
38 }; 37 };
39 38
40 } // namespace content 39 } // namespace content
41 40
42 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_JAVASCRIPT_DIALOG_MANAG ER_H_ 41 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_JAVASCRIPT_DIALOG_MANAG ER_H_
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/shell/browser/layout_test/layout_test_javascript_dialog_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698