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

Unified Diff: chrome/browser/sessions/tab_restore_service.h

Issue 7931027: Refactoring recently closed tab filtering (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 3 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/sessions/tab_restore_service.h
diff --git a/chrome/browser/sessions/tab_restore_service.h b/chrome/browser/sessions/tab_restore_service.h
index 714e83eeeaf656ff2c1c9aa5189c1dc5ffdc66e5..fedd03d778725fa75d7f8be7306161502385db6f 100644
--- a/chrome/browser/sessions/tab_restore_service.h
+++ b/chrome/browser/sessions/tab_restore_service.h
@@ -146,6 +146,12 @@ class TabRestoreService : public BaseSessionService {
// front.
virtual const Entries& entries() const;
+ // Fill the passed list with the entries filtering out the ones that are on
+ // the same URL as a previous entry. This avoid filling the list with things
+ // that look like duplicates. A user can still access the filtered out version
+ // by restoring the one he sees as it will allow the older one to show.
+ void FilteredEntries(TabRestoreService::Entries* filteredEntries) const;
sky 2011/09/19 16:23:15 If this is only going to be used by RecentlyClosed
sky 2011/09/19 20:58:17 When you move this to a separate class make the me
noyau (Ping after 24h) 2011/09/20 15:46:58 This will be used in some other context. SessionUt
+
// Restores the most recently closed entry. Does nothing if there are no
// entries to restore. If the most recently restored entry is a tab, it is
// added to |delegate|.

Powered by Google App Engine
This is Rietveld 408576698