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

Side by Side Diff: extensions/browser/guest_view/web_view/javascript_dialog_helper.h

Issue 1841653003: Drop |languages| from {Format,Elide}Url* and IDNToUnicode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo in elide_url.cc Created 4 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 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 EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_JAVASCRIPT_DIALOG_HELPER_H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_JAVASCRIPT_DIALOG_HELPER_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_JAVASCRIPT_DIALOG_HELPER_H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_JAVASCRIPT_DIALOG_HELPER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/public/browser/javascript_dialog_manager.h" 9 #include "content/public/browser/javascript_dialog_manager.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 class WebViewGuest; 13 class WebViewGuest;
14 14
15 class JavaScriptDialogHelper : public content::JavaScriptDialogManager { 15 class JavaScriptDialogHelper : public content::JavaScriptDialogManager {
16 public: 16 public:
17 explicit JavaScriptDialogHelper(WebViewGuest* guest); 17 explicit JavaScriptDialogHelper(WebViewGuest* guest);
18 ~JavaScriptDialogHelper() override; 18 ~JavaScriptDialogHelper() override;
19 19
20 // JavaScriptDialogManager implementation. 20 // JavaScriptDialogManager implementation.
21 void RunJavaScriptDialog( 21 void RunJavaScriptDialog(
22 content::WebContents* web_contents, 22 content::WebContents* web_contents,
23 const GURL& origin_url, 23 const GURL& origin_url,
24 const std::string& accept_lang,
25 content::JavaScriptMessageType javascript_message_type, 24 content::JavaScriptMessageType javascript_message_type,
26 const base::string16& message_text, 25 const base::string16& message_text,
27 const base::string16& default_prompt_text, 26 const base::string16& default_prompt_text,
28 const DialogClosedCallback& callback, 27 const DialogClosedCallback& callback,
29 bool* did_suppress_message) override; 28 bool* did_suppress_message) override;
30 void RunBeforeUnloadDialog(content::WebContents* web_contents, 29 void RunBeforeUnloadDialog(content::WebContents* web_contents,
31 bool is_reload, 30 bool is_reload,
32 const DialogClosedCallback& callback) override; 31 const DialogClosedCallback& callback) override;
33 bool HandleJavaScriptDialog(content::WebContents* web_contents, 32 bool HandleJavaScriptDialog(content::WebContents* web_contents,
34 bool accept, 33 bool accept,
(...skipping 10 matching lines...) Expand all
45 44
46 // Pointer to the webview that is being helped. 45 // Pointer to the webview that is being helped.
47 WebViewGuest* const web_view_guest_; 46 WebViewGuest* const web_view_guest_;
48 47
49 DISALLOW_COPY_AND_ASSIGN(JavaScriptDialogHelper); 48 DISALLOW_COPY_AND_ASSIGN(JavaScriptDialogHelper);
50 }; 49 };
51 50
52 } // namespace extensions 51 } // namespace extensions
53 52
54 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_JAVASCRIPT_DIALOG_HELPER_H_ 53 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_JAVASCRIPT_DIALOG_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698