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

Side by Side 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: Long live the STL 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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.
16 //
17 // The |filtering_entries| returned are simply references to the one passed in
18 // without copy: There is no transfer of ownership.
19 static void FilteredEntries(const TabRestoreService::Entries& entries,
20 TabRestoreService::Entries* filtered_entries);
21
22 private:
23 DISALLOW_IMPLICIT_CONSTRUCTORS(SessionUtils);
24 };
25
26 #endif // CHROME_BROWSER_SESSIONS_SESSION_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider_observers.cc ('k') | chrome/browser/sessions/session_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698