tab_strip_model_utils.h revision 558790d6acca3451cf3a6b497803a5f07d0bec58
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
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_UTILS_H_
6#define CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_UTILS_H_
7
8#include <set>
9#include <string>
10
11class TabStripModel;
12
13namespace history {
14class TopSites;
15}
16
17namespace chrome {
18
19// Returns the index of the first tab that is blocked. This returns
20// |model->count()| if no tab is blocked.
21int IndexOfFirstBlockedTab(const TabStripModel* model);
22
23// Creates a set containing the canonical URLs of the currently open tabs.
24void GetOpenUrls(const TabStripModel& tabs,
25                 const history::TopSites& top_sites,
26                 std::set<std::string>* urls);
27
28}  // namespace chrome
29
30#endif  // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_UTILS_H_
31