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

Unified Diff: content/browser/tab_contents/navigation_controller.cc

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
Index: content/browser/tab_contents/navigation_controller.cc
===================================================================
--- content/browser/tab_contents/navigation_controller.cc (revision 106380)
+++ content/browser/tab_contents/navigation_controller.cc (working copy)
@@ -21,7 +21,7 @@
#include "content/browser/tab_contents/tab_contents_delegate.h"
#include "content/browser/user_metrics.h"
#include "content/common/content_constants.h"
-#include "content/common/notification_service.h"
+#include "content/public/browser/notification_service.h"
#include "content/common/view_messages.h"
#include "content/public/browser/notification_types.h"
#include "net/base/escape.h"
@@ -42,7 +42,7 @@
content::PrunedDetails details;
details.from_front = from_front;
details.count = count;
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
content::NOTIFICATION_NAV_LIST_PRUNED,
content::Source<NavigationController>(nav_controller),
content::Details<content::PrunedDetails>(&details));
@@ -133,10 +133,10 @@
NavigationController::~NavigationController() {
DiscardNonCommittedEntriesInternal();
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
content::NOTIFICATION_TAB_CLOSED,
content::Source<NavigationController>(this),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
}
void NavigationController::Restore(
@@ -183,10 +183,10 @@
// The user is asking to reload a page with POST data. Prompt to make sure
// they really want to do this. If they do, the dialog will call us back
// with check_for_repost = false.
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
content::NOTIFICATION_REPOST_WARNING_SHOWN,
content::Source<NavigationController>(this),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
pending_reload_ = reload_type;
tab_contents_->Activate();
@@ -274,7 +274,7 @@
// result in a download or a 'no content' response (e.g., a mailto: URL).
DiscardNonCommittedEntriesInternal();
pending_entry_ = entry;
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
content::NOTIFICATION_NAV_ENTRY_PENDING,
content::Source<NavigationController>(this),
content::Details<NavigationEntry>(entry));
@@ -1139,7 +1139,7 @@
// notification below instead.
tab_contents_->NotifyNavigationStateChanged(kInvalidateAll);
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
content::NOTIFICATION_NAV_ENTRY_COMMITTED,
content::Source<NavigationController>(this),
notification_details);
@@ -1171,7 +1171,7 @@
content::EntryChangedDetails det;
det.changed_entry = entry;
det.index = index;
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
content::NOTIFICATION_NAV_ENTRY_CHANGED,
content::Source<NavigationController>(this),
content::Details<content::EntryChangedDetails>(&det));
« no previous file with comments | « content/browser/tab_contents/interstitial_page.cc ('k') | content/browser/tab_contents/render_view_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698