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

Side by Side Diff: content/browser/frame_host/render_frame_host_delegate.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 // A JavaScript message, confirmation or prompt should be shown. 75 // A JavaScript message, confirmation or prompt should be shown.
76 virtual void RunJavaScriptMessage(RenderFrameHost* render_frame_host, 76 virtual void RunJavaScriptMessage(RenderFrameHost* render_frame_host,
77 const base::string16& message, 77 const base::string16& message,
78 const base::string16& default_prompt, 78 const base::string16& default_prompt,
79 const GURL& frame_url, 79 const GURL& frame_url,
80 JavaScriptMessageType type, 80 JavaScriptMessageType type,
81 IPC::Message* reply_msg) {} 81 IPC::Message* reply_msg) {}
82 82
83 virtual void RunBeforeUnloadConfirm(RenderFrameHost* render_frame_host, 83 virtual void RunBeforeUnloadConfirm(RenderFrameHost* render_frame_host,
84 const base::string16& message,
85 bool is_reload, 84 bool is_reload,
86 IPC::Message* reply_msg) {} 85 IPC::Message* reply_msg) {}
87 86
88 // Another page accessed the top-level initial empty document, which means it 87 // Another page accessed the top-level initial empty document, which means it
89 // is no longer safe to display a pending URL without risking a URL spoof. 88 // is no longer safe to display a pending URL without risking a URL spoof.
90 virtual void DidAccessInitialDocument() {} 89 virtual void DidAccessInitialDocument() {}
91 90
92 // The frame changed its window.name property. 91 // The frame changed its window.name property.
93 virtual void DidChangeName(RenderFrameHost* render_frame_host, 92 virtual void DidChangeName(RenderFrameHost* render_frame_host,
94 const std::string& name) {} 93 const std::string& name) {}
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); 191 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible();
193 #endif 192 #endif
194 193
195 protected: 194 protected:
196 virtual ~RenderFrameHostDelegate() {} 195 virtual ~RenderFrameHostDelegate() {}
197 }; 196 };
198 197
199 } // namespace content 198 } // namespace content
200 199
201 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 200 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/test_runner/web_frame_test_proxy.h ('k') | content/browser/frame_host/render_frame_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698