| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // the list. | 145 // the list. |
| 146 void OnMostVisitedURLsAvailable( | 146 void OnMostVisitedURLsAvailable( |
| 147 const history::MostVisitedURLList& data); | 147 const history::MostVisitedURLList& data); |
| 148 | 148 |
| 149 // Callback for changes to the incognito mode availability pref. | 149 // Callback for changes to the incognito mode availability pref. |
| 150 void OnIncognitoAvailabilityChanged(); | 150 void OnIncognitoAvailabilityChanged(); |
| 151 | 151 |
| 152 // Helper for RunUpdate() that determines its parameters. | 152 // Helper for RunUpdate() that determines its parameters. |
| 153 void PostRunUpdate(); | 153 void PostRunUpdate(); |
| 154 | 154 |
| 155 // Called on a timer to invoke RunUpdateJumpListUserVisiblePriority() after | 155 // Called on a timer to invoke RunUpdateJumpList() after |
| 156 // requests storms have subsided. | 156 // requests storms have subsided. |
| 157 void DeferredRunUpdate(); | 157 void DeferredRunUpdate(); |
| 158 | 158 |
| 159 // history::TopSitesObserver implementation. | 159 // history::TopSitesObserver implementation. |
| 160 void TopSitesLoaded(history::TopSites* top_sites) override; | 160 void TopSitesLoaded(history::TopSites* top_sites) override; |
| 161 void TopSitesChanged(history::TopSites* top_sites, | 161 void TopSitesChanged(history::TopSites* top_sites, |
| 162 ChangeReason change_reason) override; | 162 ChangeReason change_reason) override; |
| 163 | 163 |
| 164 // Tracks FaviconService tasks. | 164 // Tracks FaviconService tasks. |
| 165 base::CancelableTaskTracker cancelable_task_tracker_; | 165 base::CancelableTaskTracker cancelable_task_tracker_; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 192 // A task runner running tasks to delete JumpListIconsOld directory. | 192 // A task runner running tasks to delete JumpListIconsOld directory. |
| 193 scoped_refptr<base::SequencedTaskRunner> delete_jumplisticonsold_task_runner_; | 193 scoped_refptr<base::SequencedTaskRunner> delete_jumplisticonsold_task_runner_; |
| 194 | 194 |
| 195 // For callbacks may be run after destruction. | 195 // For callbacks may be run after destruction. |
| 196 base::WeakPtrFactory<JumpList> weak_ptr_factory_; | 196 base::WeakPtrFactory<JumpList> weak_ptr_factory_; |
| 197 | 197 |
| 198 DISALLOW_COPY_AND_ASSIGN(JumpList); | 198 DISALLOW_COPY_AND_ASSIGN(JumpList); |
| 199 }; | 199 }; |
| 200 | 200 |
| 201 #endif // CHROME_BROWSER_WIN_JUMPLIST_H_ | 201 #endif // CHROME_BROWSER_WIN_JUMPLIST_H_ |
| OLD | NEW |