Index: chrome/browser/visitedlink/visitedlink_event_listener.cc |
=================================================================== |
--- chrome/browser/visitedlink/visitedlink_event_listener.cc (revision 110303) |
+++ chrome/browser/visitedlink/visitedlink_event_listener.cc (working copy) |
@@ -7,10 +7,10 @@ |
#include "base/shared_memory.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/common/render_messages.h" |
-#include "content/browser/renderer_host/render_process_host.h" |
#include "content/browser/renderer_host/render_widget_host.h" |
#include "content/public/browser/notification_service.h" |
#include "content/public/browser/notification_types.h" |
+#include "content/public/browser/render_process_host.h" |
using base::Time; |
using base::TimeDelta; |
@@ -31,7 +31,7 @@ |
// As opposed to the VisitedLinkEventListener, which coalesces to |
// reduce the rate of messages being sent to render processes, this class |
// ensures that the updates occur only when explicitly requested. This is |
-// used for BrowserRenderProcessHost to only send Add/Reset link events to the |
+// used for RenderProcessHostImpl to only send Add/Reset link events to the |
// renderers when their tabs are visible and the corresponding RenderViews are |
// created. |
class VisitedLinkUpdater { |
@@ -125,7 +125,8 @@ |
for (Updaters::iterator i = updaters_.begin(); i != updaters_.end(); ++i) { |
// Make sure to not send to incognito renderers. |
RenderProcessHost* process = RenderProcessHost::FromID(i->first); |
- Profile* profile = Profile::FromBrowserContext(process->browser_context()); |
+ Profile* profile = Profile::FromBrowserContext( |
+ process->GetBrowserContext()); |
VisitedLinkMaster* master = profile->GetVisitedLinkMaster(); |
if (master && master->shared_memory() == table_memory) |
i->second->SendVisitedLinkTable(table_memory); |
@@ -171,11 +172,11 @@ |
RenderProcessHost* process = |
content::Source<RenderProcessHost>(source).ptr(); |
Profile* profile = |
- Profile::FromBrowserContext(process->browser_context()); |
+ Profile::FromBrowserContext(process->GetBrowserContext()); |
if (!profile_->IsSameProfile(profile)) |
return; |
- updaters_[process->id()] = |
- make_linked_ptr(new VisitedLinkUpdater(process->id())); |
+ updaters_[process->GetID()] = |
+ make_linked_ptr(new VisitedLinkUpdater(process->GetID())); |
// Initialize support for visited links. Send the renderer process its |
// initial set of visited links. |
@@ -183,21 +184,22 @@ |
if (!master) |
return; |
- updaters_[process->id()]->SendVisitedLinkTable(master->shared_memory()); |
+ updaters_[process->GetID()]->SendVisitedLinkTable( |
+ master->shared_memory()); |
break; |
} |
case content::NOTIFICATION_RENDERER_PROCESS_TERMINATED: { |
RenderProcessHost* process = |
content::Source<RenderProcessHost>(source).ptr(); |
- if (updaters_.count(process->id())) { |
- updaters_.erase(process->id()); |
+ if (updaters_.count(process->GetID())) { |
+ updaters_.erase(process->GetID()); |
} |
break; |
} |
case content::NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED: { |
RenderWidgetHost* widget = |
content::Source<RenderWidgetHost>(source).ptr(); |
- int child_id = widget->process()->id(); |
+ int child_id = widget->process()->GetID(); |
if (updaters_.count(child_id)) |
updaters_[child_id]->Update(); |
break; |