Chromium Code Reviews| 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 from the entries passed as argument filtering out the | |
| 14 // ones with the same title and URL as a previous entry. This avoid filling | |
| 15 // the list with things that look like duplicates. A user can still access the | |
|
sky
2011/09/20 22:10:28
This last sentence doesn't really make sense here.
noyau (Ping after 24h)
2011/09/20 22:43:58
True. It is more related to the user experience, a
| |
| 16 // filtered out version by restoring the one he sees as it will allow the | |
| 17 // older one to show. | |
| 18 // | |
| 19 // The |filtering_entries| returned are simply references to the one passed in | |
| 20 // without copy: There is no transfer of ownership. | |
| 21 static void FilteredEntries(const TabRestoreService::Entries& entries, | |
| 22 TabRestoreService::Entries* filtered_entries); | |
| 23 | |
| 24 private: | |
| 25 DISALLOW_IMPLICIT_CONSTRUCTORS(SessionUtils); | |
| 26 }; | |
| 27 | |
| 28 #endif // CHROME_BROWSER_SESSIONS_SESSION_UTILS_H_ | |
| OLD | NEW |