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

Unified Diff: content/browser/renderer_host/render_view_host.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/renderer_host/render_view_host.cc
===================================================================
--- content/browser/renderer_host/render_view_host.cc (revision 106237)
+++ content/browser/renderer_host/render_view_host.cc (working copy)
@@ -32,7 +32,7 @@
#include "content/common/content_constants.h"
#include "content/common/desktop_notification_messages.h"
#include "content/common/drag_messages.h"
-#include "content/common/notification_service.h"
+#include "content/public/browser/notification_service.h"
#include "content/common/result_codes.h"
#include "content/common/speech_input_messages.h"
#include "content/common/swapped_out_messages.h"
@@ -129,20 +129,20 @@
content::GetContentClient()->browser()->RenderViewHostCreated(this);
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
content::NOTIFICATION_RENDER_VIEW_HOST_CREATED,
content::Source<RenderViewHost>(this),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
}
RenderViewHost::~RenderViewHost() {
FOR_EACH_OBSERVER(
RenderViewHostObserver, observers_, RenderViewHostDestruction());
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
content::NOTIFICATION_RENDER_VIEW_HOST_DELETED,
content::Source<RenderViewHost>(this),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
delegate()->RenderViewDeleted(this);
@@ -366,10 +366,10 @@
if (IsRenderViewLive()) {
// TODO(creis): Should this be moved to Shutdown? It may not be called for
// RenderViewHosts that have been swapped out.
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
content::NOTIFICATION_RENDER_VIEW_HOST_WILL_CLOSE_RENDER_VIEW,
content::Source<RenderViewHost>(this),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
Send(new ViewMsg_ClosePage(routing_id()));
} else {
@@ -1066,10 +1066,10 @@
}
void RenderViewHost::OnTargetDropACK() {
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
content::NOTIFICATION_RENDER_VIEW_HOST_DID_RECEIVE_DRAG_TARGET_DROP_ACK,
content::Source<RenderViewHost>(this),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
}
void RenderViewHost::OnTakeFocus(bool reverse) {
@@ -1336,10 +1336,10 @@
}
}
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
content::NOTIFICATION_RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED,
content::Source<RenderViewHost>(this),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
}
Send(new ViewMsg_AccessibilityNotifications_ACK(routing_id()));
@@ -1353,7 +1353,7 @@
return;
}
std::pair<int, Value*> details(id, result_value);
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
content::NOTIFICATION_EXECUTE_JAVASCRIPT_RESULT,
content::Source<RenderViewHost>(this),
content::Details<std::pair<int, Value*> >(&details));

Powered by Google App Engine
This is Rietveld 408576698