OLD | NEW |
| (Empty) |
1 // Copyright (c) 2006-2008 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_TITLE_CHOMPER_H__ | |
6 #define CHROME_BROWSER_TITLE_CHOMPER_H__ | |
7 | |
8 #include <string> | |
9 #include <vector> | |
10 | |
11 class TitleChomper { | |
12 public: | |
13 TitleChomper(); | |
14 | |
15 void AddTitle(const std::wstring& title); | |
16 | |
17 void ChompTitles(std::vector<std::wstring>* chomped_titles); | |
18 | |
19 private: | |
20 void GenerateChompedTitle(const std::wstring& title, | |
21 std::wstring* chomped_title); | |
22 | |
23 private: | |
24 std::vector<std::wstring> titles_; | |
25 std::vector<std::wstring> last_words_; | |
26 std::wstring last_title_; | |
27 }; | |
28 | |
29 #endif // #ifndef CHROME_BROWSER_TITLE_CHOMPER_H__ | |
30 | |
OLD | NEW |