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

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

Issue 11825011: Componentize visitedlinks to src/components/visitedlink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Final rebase Created 7 years, 11 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
deleted file mode 100644
index 2c3f3d4e19e31653ba1e2968e7ec1be1102268c1..0000000000000000000000000000000000000000
--- a/chrome/browser/visitedlink/visitedlink_event_listener.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// VisitedLinkEventListener broadcasts link coloring database updates to all
-// processes. It also coalesces the updates to avoid excessive broadcasting of
-// messages to the renderers.
-
-#ifndef CHROME_BROWSER_VISITEDLINK_VISITEDLINK_EVENT_LISTENER_H_
-#define CHROME_BROWSER_VISITEDLINK_VISITEDLINK_EVENT_LISTENER_H_
-
-#include <map>
-
-#include "base/memory/linked_ptr.h"
-#include "base/timer.h"
-#include "chrome/browser/visitedlink/visitedlink_master.h"
-#include "content/public/browser/notification_observer.h"
-#include "content/public/browser/notification_registrar.h"
-
-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);
- virtual ~VisitedLinkEventListener();
-
- virtual void NewTable(base::SharedMemory* table_memory) OVERRIDE;
- virtual void Add(VisitedLinkMaster::Fingerprint fingerprint) OVERRIDE;
- virtual void Reset() OVERRIDE;
-
- private:
- void CommitVisitedLinks();
-
- // content::NotificationObserver implementation.
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
-
- base::OneShotTimer<VisitedLinkEventListener> coalesce_timer_;
- VisitedLinkCommon::Fingerprints pending_visited_links_;
-
- content::NotificationRegistrar registrar_;
-
- // Map between renderer child ids and their VisitedLinkUpdater.
- 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_;
-
- DISALLOW_COPY_AND_ASSIGN(VisitedLinkEventListener);
-};
-
-#endif // CHROME_BROWSER_VISITEDLINK_VISITEDLINK_EVENT_LISTENER_H_
« 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