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

Side by Side Diff: android_webview/browser/aw_contents_client_bridge_base.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
« no previous file with comments | « android_webview/DEPS ('k') | android_webview/browser/aw_javascript_dialog_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/supports_user_data.h" 9 #include "base/supports_user_data.h"
10 #include "content/public/browser/javascript_dialog_manager.h" 10 #include "content/public/browser/javascript_dialog_manager.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 virtual void RunJavaScriptDialog( 52 virtual void RunJavaScriptDialog(
53 content::JavaScriptMessageType message_type, 53 content::JavaScriptMessageType message_type,
54 const GURL& origin_url, 54 const GURL& origin_url,
55 const base::string16& message_text, 55 const base::string16& message_text,
56 const base::string16& default_prompt_text, 56 const base::string16& default_prompt_text,
57 const content::JavaScriptDialogManager::DialogClosedCallback& callback) 57 const content::JavaScriptDialogManager::DialogClosedCallback& callback)
58 = 0; 58 = 0;
59 59
60 virtual void RunBeforeUnloadDialog( 60 virtual void RunBeforeUnloadDialog(
61 const GURL& origin_url, 61 const GURL& origin_url,
62 const base::string16& message_text,
63 const content::JavaScriptDialogManager::DialogClosedCallback& callback) 62 const content::JavaScriptDialogManager::DialogClosedCallback& callback)
64 = 0; 63 = 0;
65 64
66 virtual bool ShouldOverrideUrlLoading(const base::string16& url, 65 virtual bool ShouldOverrideUrlLoading(const base::string16& url,
67 bool has_user_gesture, 66 bool has_user_gesture,
68 bool is_redirect, 67 bool is_redirect,
69 bool is_main_frame) = 0; 68 bool is_main_frame) = 0;
70 }; 69 };
71 70
72 } // namespace android_webview 71 } // namespace android_webview
73 72
74 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ 73 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_
OLDNEW
« no previous file with comments | « android_webview/DEPS ('k') | android_webview/browser/aw_javascript_dialog_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698