diff options
author | ojan@google.com <ojan@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-12 17:30:55 +0000 |
---|---|---|
committer | ojan@google.com <ojan@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-12 17:30:55 +0000 |
commit | 84a6a5b6c8f0379c725493bb695f72367d21887f (patch) | |
tree | 10d0b441ff2520b1c8211500e7e3019564fd9ead /chrome/browser/web_contents.h | |
parent | cc09ca130fca5aa724d0f5538f6dd681272e8527 (diff) | |
download | chromium_src-84a6a5b6c8f0379c725493bb695f72367d21887f.zip chromium_src-84a6a5b6c8f0379c725493bb695f72367d21887f.tar.gz chromium_src-84a6a5b6c8f0379c725493bb695f72367d21887f.tar.bz2 |
Add a bit of plumbing just so Browser doesn't need to know about RenderViewHost.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@720 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/web_contents.h')
-rw-r--r-- | chrome/browser/web_contents.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/web_contents.h b/chrome/browser/web_contents.h index 2f3a7bd..25c32a6 100644 --- a/chrome/browser/web_contents.h +++ b/chrome/browser/web_contents.h @@ -84,6 +84,17 @@ class WebContents : public TabContents, virtual void HideContents(); virtual void SizeContents(const gfx::Size& size); + // Causes the renderer to invoke the onbeforeunload event handler. The + // result will be returned via ViewMsg_ShouldClose. + virtual void FirePageBeforeUnload(); + + // Close the page after the page has responded that it can be closed via + // ViewMsg_ShouldClose. This is where the page itself is closed. The + // unload handler is triggered here, which can block with a dialog, but cannot + // cancel the close of the page. + virtual void FirePageUnload(); + + // TabContents virtual WebContents* AsWebContents() { return this; } virtual bool Navigate(const NavigationEntry& entry, bool reload); |