Chromium Code Reviews| 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..0ecd00e9aca3be9046ad27e377638f47b20a3609 |
| --- /dev/null |
| +++ b/chrome/browser/sessions/session_utils.h |
| @@ -0,0 +1,25 @@ |
| +// 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 |
|
sky
2011/09/20 17:21:30
Update your comment. Also, document that TabRestor
noyau (Ping after 24h)
2011/09/20 21:53:31
Done.
|
| + // 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(const TabRestoreService::Entries& entries, |
| + TabRestoreService::Entries* filtered_entries); |
| + |
| + private: |
| + DISALLOW_IMPLICIT_CONSTRUCTORS(SessionUtils); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_SESSIONS_SESSION_UTILS_H_ |