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