summaryrefslogtreecommitdiffstats
path: root/chrome/browser/repost_form_warning_controller.cc
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-10 15:52:27 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-10 15:52:27 +0000
commit43211582b1fa8c69136385250e7b0446cf364b5c (patch)
tree655ab01543012b6fd5699dee8fab92876959b7d9 /chrome/browser/repost_form_warning_controller.cc
parentd43970a7ceee5fc5433787b0f28b64234a4039f2 (diff)
downloadchromium_src-43211582b1fa8c69136385250e7b0446cf364b5c.zip
chromium_src-43211582b1fa8c69136385250e7b0446cf364b5c.tar.gz
chromium_src-43211582b1fa8c69136385250e7b0446cf364b5c.tar.bz2
Moving notification types which are chrome specific to a new header file chrome_notification_types.h.
This file lives in chrome\common. The chrome specific notifications start from NOTIFICATION_CONTENT_END which defines the end of the enum used by content to define notification types. The notificaton_type.h file in content\common has been renamed to content_notification_types.h BUG=76698 Review URL: http://codereview.chromium.org/7327007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91972 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/repost_form_warning_controller.cc')
-rw-r--r--chrome/browser/repost_form_warning_controller.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/repost_form_warning_controller.cc b/chrome/browser/repost_form_warning_controller.cc
index 087c391..f57cbdb 100644
--- a/chrome/browser/repost_form_warning_controller.cc
+++ b/chrome/browser/repost_form_warning_controller.cc
@@ -12,11 +12,11 @@ RepostFormWarningController::RepostFormWarningController(
: tab_contents_(tab_contents),
window_(NULL) {
NavigationController* controller = &tab_contents->controller();
- registrar_.Add(this, NotificationType::LOAD_START,
+ registrar_.Add(this, content::NOTIFICATION_LOAD_START,
Source<NavigationController>(controller));
- registrar_.Add(this, NotificationType::TAB_CLOSING,
+ registrar_.Add(this, content::NOTIFICATION_TAB_CLOSING,
Source<NavigationController>(controller));
- registrar_.Add(this, NotificationType::REPOST_WARNING_SHOWN,
+ registrar_.Add(this, content::NOTIFICATION_REPOST_WARNING_SHOWN,
Source<NavigationController>(controller));
}
@@ -47,16 +47,16 @@ void RepostFormWarningController::Continue() {
}
}
-void RepostFormWarningController::Observe(NotificationType type,
+void RepostFormWarningController::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
// Close the dialog if we load a page (because reloading might not apply to
// the same page anymore) or if the tab is closed, because then we won't have
// a navigation controller anymore.
if (tab_contents_ &&
- (type == NotificationType::LOAD_START ||
- type == NotificationType::TAB_CLOSING ||
- type == NotificationType::REPOST_WARNING_SHOWN)) {
+ (type == content::NOTIFICATION_LOAD_START ||
+ type == content::NOTIFICATION_TAB_CLOSING ||
+ type == content::NOTIFICATION_REPOST_WARNING_SHOWN)) {
DCHECK_EQ(Source<NavigationController>(source).ptr(),
&tab_contents_->controller());
Cancel();