OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_UTILS_H_ | |
6 #define CHROME_BROWSER_SESSIONS_SESSION_UTILS_H_ | |
7 #pragma once | |
8 | |
9 #include "chrome/browser/sessions/tab_restore_service.h" | |
10 | |
11 class SessionUtils { | |
12 public: | |
13 // Fill the passed list with the entries() from the TabRestoreService | |
14 // filtering out the ones with the same title and URL as a previous entry. | |
15 // This avoid filling the list with things that look like duplicates. A user | |
16 // can still access the filtered out version by restoring the one he sees as | |
17 // it will allow the older one to show. | |
18 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.
| |
19 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.
| |
20 }; | |
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.
| |
21 | |
22 #endif // CHROME_BROWSER_SESSIONS_SESSION_UTILS_H_ | |
OLD | NEW |