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_WIN_H_ | 5 #ifndef CHROME_BROWSER_JUMPLIST_WIN_H_ |
6 #define CHROME_BROWSER_JUMPLIST_WIN_H_ | 6 #define CHROME_BROWSER_JUMPLIST_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <string> | 10 #include <string> |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 // decompresses collected favicons and updates a JumpList. | 161 // decompresses collected favicons and updates a JumpList. |
162 void OnFavIconDataAvailable(HistoryService::Handle handle, | 162 void OnFavIconDataAvailable(HistoryService::Handle handle, |
163 bool know_favicon, | 163 bool know_favicon, |
164 scoped_refptr<RefCountedMemory> data, | 164 scoped_refptr<RefCountedMemory> data, |
165 bool expired, | 165 bool expired, |
166 GURL icon_url); | 166 GURL icon_url); |
167 | 167 |
168 private: | 168 private: |
169 // Our consumers for HistoryService. | 169 // Our consumers for HistoryService. |
170 CancelableRequestConsumer most_visited_consumer_; | 170 CancelableRequestConsumer most_visited_consumer_; |
171 CancelableRequestConsumer fav_icon_consumer_; | 171 CancelableRequestConsumer favicon_consumer_; |
172 | 172 |
173 // The Profile object used for listening its events. | 173 // The Profile object used for listening its events. |
174 Profile* profile_; | 174 Profile* profile_; |
175 | 175 |
176 // App id to associate with the jump list. | 176 // App id to associate with the jump list. |
177 std::wstring app_id_; | 177 std::wstring app_id_; |
178 | 178 |
179 // The directory which contains JumpList icons. | 179 // The directory which contains JumpList icons. |
180 FilePath icon_dir_; | 180 FilePath icon_dir_; |
181 | 181 |
182 // Items in the "Most Visited" category of the application JumpList. | 182 // Items in the "Most Visited" category of the application JumpList. |
183 ShellLinkItemList most_visited_pages_; | 183 ShellLinkItemList most_visited_pages_; |
184 | 184 |
185 // Items in the "Recently Closed" category of the application JumpList. | 185 // Items in the "Recently Closed" category of the application JumpList. |
186 ShellLinkItemList recently_closed_pages_; | 186 ShellLinkItemList recently_closed_pages_; |
187 | 187 |
188 // A list of URLs we need to retrieve their favicons. | 188 // A list of URLs we need to retrieve their favicons. |
189 typedef std::pair<std::string, scoped_refptr<ShellLinkItem> > URLPair; | 189 typedef std::pair<std::string, scoped_refptr<ShellLinkItem> > URLPair; |
190 std::list<URLPair> icon_urls_; | 190 std::list<URLPair> icon_urls_; |
191 }; | 191 }; |
192 | 192 |
193 #endif // CHROME_BROWSER_JUMPLIST_WIN_H_ | 193 #endif // CHROME_BROWSER_JUMPLIST_WIN_H_ |
OLD | NEW |