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

Unified Diff: chrome/browser/visitedlink/visitedlink_event_listener.h

Issue 11573060: Remove VisitedLink dependency on rest of chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unittest compile. Created 8 years 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_event_listener.h
diff --git a/chrome/browser/visitedlink/visitedlink_event_listener.h b/chrome/browser/visitedlink/visitedlink_event_listener.h
index 543f46ce336efe9f99def86f5bab8242b4781183..2c3f3d4e19e31653ba1e2968e7ec1be1102268c1 100644
--- a/chrome/browser/visitedlink/visitedlink_event_listener.h
+++ b/chrome/browser/visitedlink/visitedlink_event_listener.h
@@ -17,17 +17,21 @@
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
-class Profile;
class VisitedLinkUpdater;
namespace base {
class SharedMemory;
}
+namespace content {
+class BrowserContext;
+} // namespace content
+
class VisitedLinkEventListener : public VisitedLinkMaster::Listener,
public content::NotificationObserver {
public:
- explicit VisitedLinkEventListener(Profile* profile);
+ VisitedLinkEventListener(VisitedLinkMaster* master,
+ content::BrowserContext* browser_context);
virtual ~VisitedLinkEventListener();
virtual void NewTable(base::SharedMemory* table_memory) OVERRIDE;
@@ -51,7 +55,11 @@ class VisitedLinkEventListener : public VisitedLinkMaster::Listener,
typedef std::map<int, linked_ptr<VisitedLinkUpdater> > Updaters;
Updaters updaters_;
- Profile* profile_;
+ VisitedLinkMaster* master_;
+
+ // Used to filter RENDERER_PROCESS_CREATED notifications to renderers that
+ // belong to this BrowserContext.
+ content::BrowserContext* browser_context_;
DISALLOW_COPY_AND_ASSIGN(VisitedLinkEventListener);
};

Powered by Google App Engine
This is Rietveld 408576698