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

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 106380)
+++ content/browser/renderer_host/render_view_host.cc (working copy)
@@ -33,7 +33,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"
@@ -131,20 +131,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());
ClearPowerSaveBlockers();
@@ -370,10 +370,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 {
@@ -1074,10 +1074,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) {
@@ -1344,10 +1344,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()));
@@ -1361,7 +1361,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));
« no previous file with comments | « content/browser/renderer_host/render_process_host.cc ('k') | content/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698