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

Unified Diff: chrome/browser/visitedlink_event_listener.h

Issue 113591: Fix Acid3 Test 48: LINKTEST, Chromium side.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Made waiting more bearable. Created 11 years, 6 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
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/browser/visitedlink_event_listener.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/visitedlink_event_listener.h
===================================================================
--- chrome/browser/visitedlink_event_listener.h (revision 0)
+++ chrome/browser/visitedlink_event_listener.h (revision 0)
@@ -0,0 +1,37 @@
+// Copyright (c) 2009 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 VISITEDLINK_EVENT_LISTENER_H_
+#define VISITEDLINK_EVENT_LISTENER_H_
+
+#include "base/timer.h"
+#include "chrome/browser/visitedlink_master.h"
+
+namespace base {
+class SharedMemory;
+}
+
+class VisitedLinkEventListener : public VisitedLinkMaster::Listener {
+ public:
+ VisitedLinkEventListener() {}
+ virtual ~VisitedLinkEventListener() {}
+
+ virtual void NewTable(base::SharedMemory* table_memory);
+ virtual void Add(VisitedLinkMaster::Fingerprint fingerprint);
+ virtual void Reset();
+
+ private:
+ void CommitVisitedLinks();
+
+ base::OneShotTimer<VisitedLinkEventListener> coalesce_timer_;
+ VisitedLinkCommon::Fingerprints pending_visited_links_;
+
+ DISALLOW_COPY_AND_ASSIGN(VisitedLinkEventListener);
+};
+
+#endif // VISITEDLINK_EVENT_LISTENER_H_
Property changes on: chrome\browser\visitedlink_event_listener.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/browser/visitedlink_event_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698