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

Unified Diff: content/browser/frame_host/render_frame_host_delegate.h

Issue 261783007: Move didHandleOnloadEvents to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add TODOs Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_frame_host_delegate.h
diff --git a/content/browser/frame_host/render_frame_host_delegate.h b/content/browser/frame_host/render_frame_host_delegate.h
index e412fb72639cbfdfbbdc8e7c9b3b3c5117695d89..b1a15236a59fea955f2ce8addd79f5272de6919a 100644
--- a/content/browser/frame_host/render_frame_host_delegate.h
+++ b/content/browser/frame_host/render_frame_host_delegate.h
@@ -67,14 +67,14 @@ class CONTENT_EXPORT RenderFrameHostDelegate {
const ContextMenuParams& params) {}
// A JavaScript message, confirmation or prompt should be shown.
- virtual void RunJavaScriptMessage(RenderFrameHost* rfh,
+ virtual void RunJavaScriptMessage(RenderFrameHost* render_frame_host,
const base::string16& message,
const base::string16& default_prompt,
const GURL& frame_url,
JavaScriptMessageType type,
IPC::Message* reply_msg) {}
- virtual void RunBeforeUnloadConfirm(RenderFrameHost* rfh,
+ virtual void RunBeforeUnloadConfirm(RenderFrameHost* render_frame_host,
const base::string16& message,
bool is_reload,
IPC::Message* reply_msg) {}
@@ -87,6 +87,11 @@ class CONTENT_EXPORT RenderFrameHostDelegate {
// window. Only called for the top-level frame.
virtual void DidDisownOpener(RenderFrameHost* render_frame_host) {}
+ // The onload handler in the frame has completed. Only called for the top-
+ // level frame.
+ virtual void DocumentOnLoadCompleted(RenderFrameHost* render_frame_host,
+ int32 page_id) {}
+
// Return this object cast to a WebContents, if it is one. If the object is
// not a WebContents, returns NULL.
virtual WebContents* GetAsWebContents();
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698