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

Side by Side Diff: chrome/browser/ui/tabs/tab_strip_model_utils.h

Issue 17114002: Field trial removing tiles from NTP if URL is already open - for 1993 clients (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed failing tests Created 7 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_UTILS_H_ 5 #ifndef CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_UTILS_H_
6 #define CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_UTILS_H_ 6 #define CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_UTILS_H_
7 7
8 #include <set>
9 #include <string>
10
8 class TabStripModel; 11 class TabStripModel;
9 12
13 namespace history {
14 class TopSites;
15 }
16
10 namespace chrome { 17 namespace chrome {
11 18
12 // Returns the index of the first tab that is blocked. This returns 19 // Returns the index of the first tab that is blocked. This returns
13 // |model->count()| if no tab is blocked. 20 // |model->count()| if no tab is blocked.
14 int IndexOfFirstBlockedTab(const TabStripModel* model); 21 int IndexOfFirstBlockedTab(const TabStripModel* model);
15 22
23 // Creates a set containing the canonical URLs of the currently open tabs.
24 void GetOpenUrls(const TabStripModel& tabs,
25 const history::TopSites& top_sites,
26 std::set<std::string>* urls);
27
16 } // namespace chrome 28 } // namespace chrome
17 29
18 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_UTILS_H_ 30 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/instant_page.cc ('k') | chrome/browser/ui/tabs/tab_strip_model_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698