OLD | NEW |
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_WIN_JUMPLIST_H_ | 5 #ifndef CHROME_BROWSER_WIN_JUMPLIST_H_ |
6 #define CHROME_BROWSER_WIN_JUMPLIST_H_ | 6 #define CHROME_BROWSER_WIN_JUMPLIST_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 169 |
170 // Lives on the UI thread. | 170 // Lives on the UI thread. |
171 std::unique_ptr<PrefChangeRegistrar> pref_change_registrar_; | 171 std::unique_ptr<PrefChangeRegistrar> pref_change_registrar_; |
172 | 172 |
173 // App id to associate with the jump list. | 173 // App id to associate with the jump list. |
174 std::wstring app_id_; | 174 std::wstring app_id_; |
175 | 175 |
176 // The directory which contains JumpList icons. | 176 // The directory which contains JumpList icons. |
177 base::FilePath icon_dir_; | 177 base::FilePath icon_dir_; |
178 | 178 |
| 179 // A boolean flag indicating if "Most Visited" category of the JumpList should |
| 180 // be updated or not. |
| 181 bool should_update_most_visited_; |
| 182 |
| 183 // A boolean flag indicating if "Recently Closed" category of the JumpList |
| 184 // should be updated or not. |
| 185 bool should_update_recent_closed_; |
| 186 |
179 // Timer for requesting delayed updates of the jumplist. | 187 // Timer for requesting delayed updates of the jumplist. |
180 base::OneShotTimer timer_; | 188 base::OneShotTimer timer_; |
181 | 189 |
182 // Holds data that can be accessed from multiple threads. | 190 // Holds data that can be accessed from multiple threads. |
183 scoped_refptr<base::RefCountedData<JumpListData>> jumplist_data_; | 191 scoped_refptr<base::RefCountedData<JumpListData>> jumplist_data_; |
184 | 192 |
185 // Id of last favicon task. It's used to cancel current task if a new one | 193 // Id of last favicon task. It's used to cancel current task if a new one |
186 // comes in before it finishes. | 194 // comes in before it finishes. |
187 base::CancelableTaskTracker::TaskId task_id_; | 195 base::CancelableTaskTracker::TaskId task_id_; |
188 | 196 |
189 // A task runner running tasks to update the jumplist in JumpListIcons. | 197 // A task runner running tasks to update the JumpList. |
190 scoped_refptr<base::SingleThreadTaskRunner> update_jumplisticons_task_runner_; | 198 scoped_refptr<base::SingleThreadTaskRunner> update_jumplist_task_runner_; |
191 | 199 |
192 // A task runner running tasks to delete JumpListIconsOld directory. | 200 // A task runner running tasks to delete JumpListIcons directory and |
193 scoped_refptr<base::SequencedTaskRunner> delete_jumplisticonsold_task_runner_; | 201 // JumpListIconsOld directory. |
| 202 scoped_refptr<base::SequencedTaskRunner> delete_jumplisticons_task_runner_; |
194 | 203 |
195 // For callbacks may be run after destruction. | 204 // For callbacks may be run after destruction. |
196 base::WeakPtrFactory<JumpList> weak_ptr_factory_; | 205 base::WeakPtrFactory<JumpList> weak_ptr_factory_; |
197 | 206 |
198 DISALLOW_COPY_AND_ASSIGN(JumpList); | 207 DISALLOW_COPY_AND_ASSIGN(JumpList); |
199 }; | 208 }; |
200 | 209 |
201 #endif // CHROME_BROWSER_WIN_JUMPLIST_H_ | 210 #endif // CHROME_BROWSER_WIN_JUMPLIST_H_ |
OLD | NEW |