OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_JUMPLIST_H_ | 5 #ifndef CHROME_BROWSER_JUMPLIST_H_ |
6 #define CHROME_BROWSER_JUMPLIST_H_ | 6 #define CHROME_BROWSER_JUMPLIST_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
14 #include "chrome/browser/cancelable_request.h" | 14 #include "chrome/browser/cancelable_request.h" |
15 #include "chrome/browser/history/history.h" | 15 #include "chrome/browser/history/history.h" |
16 #include "chrome/browser/sessions/tab_restore_service.h" | 16 #include "chrome/browser/sessions/tab_restore_service.h" |
17 | 17 |
| 18 class FilePath; |
18 class Profile; | 19 class Profile; |
19 class PageUsageData; | 20 class PageUsageData; |
20 | 21 |
21 // Represents a class used for creating an IShellLink object by the utility | 22 // Represents a class used for creating an IShellLink object by the utility |
22 // functions in this file. | 23 // functions in this file. |
23 // This class consists of three strings and a integer. | 24 // This class consists of three strings and a integer. |
24 // * arguments (std::wstring) | 25 // * arguments (std::wstring) |
25 // The arguments for the application. | 26 // The arguments for the application. |
26 // * title (std::wstring) | 27 // * title (std::wstring) |
27 // The string to be displayed in a JumpList. | 28 // The string to be displayed in a JumpList. |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 164 |
164 private: | 165 private: |
165 // Our consumers for HistoryService. | 166 // Our consumers for HistoryService. |
166 CancelableRequestConsumer most_visited_consumer_; | 167 CancelableRequestConsumer most_visited_consumer_; |
167 CancelableRequestConsumer fav_icon_consumer_; | 168 CancelableRequestConsumer fav_icon_consumer_; |
168 | 169 |
169 // The Profile object used for listening its events. | 170 // The Profile object used for listening its events. |
170 Profile* profile_; | 171 Profile* profile_; |
171 | 172 |
172 // The directory which contains JumpList icons. | 173 // The directory which contains JumpList icons. |
173 std::wstring icon_dir_; | 174 FilePath icon_dir_; |
174 | 175 |
175 // Items in the "Most Visited" category of the application JumpList. | 176 // Items in the "Most Visited" category of the application JumpList. |
176 ShellLinkItemList most_visited_pages_; | 177 ShellLinkItemList most_visited_pages_; |
177 | 178 |
178 // Items in the "Recently Closed" category of the application JumpList. | 179 // Items in the "Recently Closed" category of the application JumpList. |
179 ShellLinkItemList recently_closed_pages_; | 180 ShellLinkItemList recently_closed_pages_; |
180 | 181 |
181 // A list of URLs we need to retrieve their fav icons. | 182 // A list of URLs we need to retrieve their fav icons. |
182 typedef std::pair<std::string, scoped_refptr<ShellLinkItem> > URLPair; | 183 typedef std::pair<std::string, scoped_refptr<ShellLinkItem> > URLPair; |
183 std::list<URLPair> icon_urls_; | 184 std::list<URLPair> icon_urls_; |
184 }; | 185 }; |
185 | 186 |
186 #endif // CHROME_BROWSER_JUMPLIST_H_ | 187 #endif // CHROME_BROWSER_JUMPLIST_H_ |
OLD | NEW |