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

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: Use delegate instead 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..fcca6f9c93aba5bc605ac615fbf4a939b37b12bb 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,9 @@ class VisitedLinkEventListener : public VisitedLinkMaster::Listener,
typedef std::map<int, linked_ptr<VisitedLinkUpdater> > Updaters;
Updaters updaters_;
- Profile* profile_;
+ VisitedLinkMaster* master_;
+
+ content::BrowserContext* browser_context_;
DISALLOW_COPY_AND_ASSIGN(VisitedLinkEventListener);
};

Powered by Google App Engine
This is Rietveld 408576698