summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/notification_provider.h
diff options
context:
space:
mode:
authorjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-25 17:38:23 +0000
committerjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-25 17:38:23 +0000
commit42219753c0e79431d59af4aeeb769730a9fabfbd (patch)
tree1ba1097254e156e6951252231c238eda7d8403d8 /chrome/renderer/notification_provider.h
parent3fe87738f5042d30977ab6263c6e3565f45b4c3a (diff)
downloadchromium_src-42219753c0e79431d59af4aeeb769730a9fabfbd.zip
chromium_src-42219753c0e79431d59af4aeeb769730a9fabfbd.tar.gz
chromium_src-42219753c0e79431d59af4aeeb769730a9fabfbd.tar.bz2
If a page is navigated within the same render process, the active notifications need to go out of scope so we don't try to fire events on them back to the original page.
BUG=32862 TEST=reload page then close notification Review URL: http://codereview.chromium.org/549140 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37019 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/notification_provider.h')
-rw-r--r--chrome/renderer/notification_provider.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/renderer/notification_provider.h b/chrome/renderer/notification_provider.h
index d02ee15..7c5ca71 100644
--- a/chrome/renderer/notification_provider.h
+++ b/chrome/renderer/notification_provider.h
@@ -36,6 +36,9 @@ class NotificationProvider : public WebKit::WebNotificationPresenter {
// IPC message handler called from RenderView.
bool OnMessageReceived(const IPC::Message& message);
+ // Called when the RenderView navigates.
+ void OnNavigate();
+
private:
// Internal methods used to show notifications.
bool ShowHTML(const WebKit::WebNotification& notification, int id);