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

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

Issue 11784006: Revert "Remove VisitedLink dependency on rest of chrome" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 12 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: 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 2c3f3d4e19e31653ba1e2968e7ec1be1102268c1..543f46ce336efe9f99def86f5bab8242b4781183 100644
--- a/chrome/browser/visitedlink/visitedlink_event_listener.h
+++ b/chrome/browser/visitedlink/visitedlink_event_listener.h
@@ -17,21 +17,17 @@
#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:
- VisitedLinkEventListener(VisitedLinkMaster* master,
- content::BrowserContext* browser_context);
+ explicit VisitedLinkEventListener(Profile* profile);
virtual ~VisitedLinkEventListener();
virtual void NewTable(base::SharedMemory* table_memory) OVERRIDE;
@@ -55,11 +51,7 @@ class VisitedLinkEventListener : public VisitedLinkMaster::Listener,
typedef std::map<int, linked_ptr<VisitedLinkUpdater> > Updaters;
Updaters updaters_;
- VisitedLinkMaster* master_;
-
- // Used to filter RENDERER_PROCESS_CREATED notifications to renderers that
- // belong to this BrowserContext.
- content::BrowserContext* browser_context_;
+ Profile* profile_;
DISALLOW_COPY_AND_ASSIGN(VisitedLinkEventListener);
};
« no previous file with comments | « chrome/browser/visitedlink/visitedlink_delegate.h ('k') | chrome/browser/visitedlink/visitedlink_event_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698