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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 182 |
183 // The Profile object is used to listen for events | 183 // The Profile object is used to listen for events |
184 Profile* profile_; | 184 Profile* profile_; |
185 | 185 |
186 // Lives on the UI thread. | 186 // Lives on the UI thread. |
187 std::unique_ptr<PrefChangeRegistrar> pref_change_registrar_; | 187 std::unique_ptr<PrefChangeRegistrar> pref_change_registrar_; |
188 | 188 |
189 // App id to associate with the jump list. | 189 // App id to associate with the jump list. |
190 std::wstring app_id_; | 190 std::wstring app_id_; |
191 | 191 |
192 // The directory which contains JumpList icons. | |
193 base::FilePath icon_dir_; | |
194 | |
195 // Timer for requesting delayed updates of the jumplist. | 192 // Timer for requesting delayed updates of the jumplist. |
196 base::OneShotTimer timer_; | 193 base::OneShotTimer timer_; |
197 | 194 |
198 // Holds data that can be accessed from multiple threads. | 195 // Holds data that can be accessed from multiple threads. |
199 scoped_refptr<base::RefCountedData<JumpListData>> jumplist_data_; | 196 scoped_refptr<base::RefCountedData<JumpListData>> jumplist_data_; |
200 | 197 |
201 // Id of last favicon task. It's used to cancel current task if a new one | 198 // Id of last favicon task. It's used to cancel current task if a new one |
202 // comes in before it finishes. | 199 // comes in before it finishes. |
203 base::CancelableTaskTracker::TaskId task_id_; | 200 base::CancelableTaskTracker::TaskId task_id_; |
204 | 201 |
205 // A task runner running tasks to update the JumpList. | 202 // A task runner running tasks to update the JumpList. |
206 scoped_refptr<base::SingleThreadTaskRunner> update_jumplist_task_runner_; | 203 scoped_refptr<base::SingleThreadTaskRunner> update_jumplist_task_runner_; |
207 | 204 |
208 // A task runner running tasks to delete JumpListIcons directory and | 205 // A task runner running tasks to delete JumpListIcons directory and |
209 // JumpListIconsOld directory. | 206 // JumpListIconsOld directory. |
210 scoped_refptr<base::SequencedTaskRunner> delete_jumplisticons_task_runner_; | 207 scoped_refptr<base::SequencedTaskRunner> delete_jumplisticons_task_runner_; |
211 | 208 |
212 // For callbacks may be run after destruction. | 209 // For callbacks may be run after destruction. |
213 base::WeakPtrFactory<JumpList> weak_ptr_factory_; | 210 base::WeakPtrFactory<JumpList> weak_ptr_factory_; |
214 | 211 |
215 DISALLOW_COPY_AND_ASSIGN(JumpList); | 212 DISALLOW_COPY_AND_ASSIGN(JumpList); |
216 }; | 213 }; |
217 | 214 |
218 #endif // CHROME_BROWSER_WIN_JUMPLIST_H_ | 215 #endif // CHROME_BROWSER_WIN_JUMPLIST_H_ |
OLD | NEW |