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

Unified Diff: chrome/browser/visitedlink/visitedlink_unittest.cc

Issue 8515027: Define the public version of the browser side RenderProcessHost interface. This interface is not ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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: chrome/browser/visitedlink/visitedlink_unittest.cc
===================================================================
--- chrome/browser/visitedlink/visitedlink_unittest.cc (revision 110571)
+++ chrome/browser/visitedlink/visitedlink_unittest.cc (working copy)
@@ -18,7 +18,7 @@
#include "chrome/renderer/visitedlink_slave.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "chrome/test/base/testing_profile.h"
-#include "content/browser/renderer_host/browser_render_process_host.h"
+#include "content/browser/renderer_host/render_process_host_impl.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_types.h"
#include "content/test/test_browser_thread.h"
@@ -495,12 +495,12 @@
scoped_ptr<VisitedLinkMaster> visited_link_master_;
};
-// Stub out as little as possible, borrowing from BrowserRenderProcessHost.
-class VisitRelayingRenderProcessHost : public BrowserRenderProcessHost {
+// Stub out as little as possible, borrowing from RenderProcessHost.
+class VisitRelayingRenderProcessHost : public RenderProcessHostImpl {
public:
explicit VisitRelayingRenderProcessHost(
content::BrowserContext* browser_context)
- : BrowserRenderProcessHost(browser_context) {
+ : RenderProcessHostImpl(browser_context) {
content::NotificationService::current()->Notify(
content::NOTIFICATION_RENDERER_PROCESS_CREATED,
content::Source<RenderProcessHost>(this),
@@ -509,7 +509,7 @@
virtual ~VisitRelayingRenderProcessHost() {
content::NotificationService::current()->Notify(
content::NOTIFICATION_RENDERER_PROCESS_TERMINATED,
- content::Source<RenderProcessHost>(this),
+ content::Source<content::RenderProcessHost>(this),
content::NotificationService::NoDetails());
}
@@ -532,7 +532,7 @@
virtual bool Send(IPC::Message* msg) {
VisitCountingProfile* counting_profile =
static_cast<VisitCountingProfile*>(
- Profile::FromBrowserContext(browser_context()));
+ Profile::FromBrowserContext(GetBrowserContext()));
if (msg->type() == ChromeViewMsg_VisitedLink_Add::ID) {
void* iter = NULL;
@@ -556,11 +556,11 @@
};
class VisitedLinkRenderProcessHostFactory
- : public RenderProcessHostFactory {
+ : public content::RenderProcessHostFactory {
public:
VisitedLinkRenderProcessHostFactory()
- : RenderProcessHostFactory() {}
- virtual RenderProcessHost* CreateRenderProcessHost(
+ : content::RenderProcessHostFactory() {}
+ virtual content::RenderProcessHost* CreateRenderProcessHost(
content::BrowserContext* browser_context) const OVERRIDE {
return new VisitRelayingRenderProcessHost(browser_context);
}
« no previous file with comments | « chrome/browser/visitedlink/visitedlink_event_listener.cc ('k') | chrome/test/base/in_process_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698