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

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

Issue 7931027: Refactoring recently closed tab filtering (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Implementing reviewer feedback 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/session_utils.h
diff --git a/chrome/browser/sessions/session_utils.h b/chrome/browser/sessions/session_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..314a2789a4cf4f3d8d73c09cbdff73917473dcd3
--- /dev/null
+++ b/chrome/browser/sessions/session_utils.h
@@ -0,0 +1,22 @@
+// 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.
+
+#ifndef CHROME_BROWSER_SESSIONS_SESSION_UTILS_H_
+#define CHROME_BROWSER_SESSIONS_SESSION_UTILS_H_
+#pragma once
+
+#include "chrome/browser/sessions/tab_restore_service.h"
+
+class SessionUtils {
+ public:
+ // Fill the passed list with the entries() from the TabRestoreService
+ // filtering out the ones with the same title and 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.
+ static void FilteredEntries(TabRestoreService* service,
sky 2011/09/20 16:24:46 Don't make this depend upon TabRestoreService. Ins
noyau (Ping after 24h) 2011/09/20 17:09:35 Done.
+ TabRestoreService::Entries* filteredTabs);
sky 2011/09/20 16:24:46 filtered_tabs. But filtered_entries is a better na
noyau (Ping after 24h) 2011/09/20 17:09:35 Done.
+};
sky 2011/09/20 16:24:46 add a private field and DISALLOW_IMPLICIT_CONSTRUC
noyau (Ping after 24h) 2011/09/20 17:09:35 Done.
+
+#endif // CHROME_BROWSER_SESSIONS_SESSION_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698