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_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 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
16 #include "base/task/cancelable_task_tracker.h" | 16 #include "base/task/cancelable_task_tracker.h" |
17 #include "chrome/browser/history/history_service.h" | 17 #include "chrome/browser/history/history_service.h" |
18 #include "chrome/browser/jumplist_updater_win.h" | 18 #include "chrome/browser/jumplist_updater_win.h" |
19 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 19 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
20 #include "chrome/browser/sessions/tab_restore_service.h" | 20 #include "chrome/browser/sessions/tab_restore_service.h" |
21 #include "chrome/browser/sessions/tab_restore_service_observer.h" | 21 #include "chrome/browser/sessions/tab_restore_service_observer.h" |
22 #include "components/history/core/browser/history_types.h" | 22 #include "components/history/core/browser/history_types.h" |
23 #include "components/history/core/browser/top_sites_observer.h" | 23 #include "components/history/core/browser/top_sites_observer.h" |
24 #include "content/public/browser/browser_thread.h" | 24 #include "content/public/browser/browser_thread.h" |
25 #include "content/public/browser/notification_observer.h" | 25 #include "content/public/browser/notification_observer.h" |
| 26 #include "content/public/browser/notification_registrar.h" |
26 | 27 |
27 namespace chrome { | 28 namespace chrome { |
28 struct FaviconImageResult; | 29 struct FaviconImageResult; |
29 } | 30 } |
30 | 31 |
31 namespace content { | |
32 class NotificationRegistrar; | |
33 } | |
34 | |
35 class PrefChangeRegistrar; | 32 class PrefChangeRegistrar; |
36 class Profile; | 33 class Profile; |
37 | 34 |
38 // A class which implements an application JumpList. | 35 // A class which implements an application JumpList. |
39 // This class encapsulates operations required for updating an application | 36 // This class encapsulates operations required for updating an application |
40 // JumpList: | 37 // JumpList: |
41 // * Retrieving "Most Visited" pages from HistoryService; | 38 // * Retrieving "Most Visited" pages from HistoryService; |
42 // * Retrieving strings from the application resource; | 39 // * Retrieving strings from the application resource; |
43 // * Adding COM objects to JumpList, etc. | 40 // * Adding COM objects to JumpList, etc. |
44 // | 41 // |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // as they may be used by up to 3 threads. | 175 // as they may be used by up to 3 threads. |
179 base::Lock list_lock_; | 176 base::Lock list_lock_; |
180 | 177 |
181 // For callbacks may be run after destruction. | 178 // For callbacks may be run after destruction. |
182 base::WeakPtrFactory<JumpList> weak_ptr_factory_; | 179 base::WeakPtrFactory<JumpList> weak_ptr_factory_; |
183 | 180 |
184 DISALLOW_COPY_AND_ASSIGN(JumpList); | 181 DISALLOW_COPY_AND_ASSIGN(JumpList); |
185 }; | 182 }; |
186 | 183 |
187 #endif // CHROME_BROWSER_JUMPLIST_WIN_H_ | 184 #endif // CHROME_BROWSER_JUMPLIST_WIN_H_ |
OLD | NEW |