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

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

Issue 11825011: Componentize visitedlinks to src/components/visitedlink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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: components/visitedlink/browser/visitedlink_event_listener.h
diff --git a/chrome/browser/visitedlink/visitedlink_event_listener.h b/components/visitedlink/browser/visitedlink_event_listener.h
similarity index 84%
rename from chrome/browser/visitedlink/visitedlink_event_listener.h
rename to components/visitedlink/browser/visitedlink_event_listener.h
index 2c3f3d4e19e31653ba1e2968e7ec1be1102268c1..f21a7fcdb6e09e3f78bc324e03c15a1723d2a4c5 100644
--- a/chrome/browser/visitedlink/visitedlink_event_listener.h
+++ b/components/visitedlink/browser/visitedlink_event_listener.h
@@ -6,27 +6,32 @@
// 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_
+#ifndef COMPONENTS_VISITEDLINK_BROWSER_VISITEDLINK_EVENT_LISTENER_H_
+#define COMPONENTS_VISITEDLINK_BROWSER_VISITEDLINK_EVENT_LISTENER_H_
#include <map>
#include "base/memory/linked_ptr.h"
#include "base/timer.h"
-#include "chrome/browser/visitedlink/visitedlink_master.h"
+#include "components/visitedlink/browser/visitedlink_master.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
-class VisitedLinkUpdater;
namespace base {
class SharedMemory;
}
+namespace components {
+class VisitedLinkUpdater;
brettw 2013/01/18 21:58:47 Just move this inside the components namespace bel
boliu 2013/01/18 22:42:15 Done.
+} // namespace components
+
namespace content {
class BrowserContext;
} // namespace content
+namespace components {
+
class VisitedLinkEventListener : public VisitedLinkMaster::Listener,
public content::NotificationObserver {
public:
@@ -64,4 +69,6 @@ class VisitedLinkEventListener : public VisitedLinkMaster::Listener,
DISALLOW_COPY_AND_ASSIGN(VisitedLinkEventListener);
};
-#endif // CHROME_BROWSER_VISITEDLINK_VISITEDLINK_EVENT_LISTENER_H_
+} // namespace components
+
+#endif // COMPONENTS_VISITEDLINK_BROWSER_VISITEDLINK_EVENT_LISTENER_H_

Powered by Google App Engine
This is Rietveld 408576698