OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_UI_TOOLBAR_RECENT_TABS_SUB_MENU_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_RECENT_TABS_SUB_MENU_MODEL_H_ |
6 #define CHROME_BROWSER_UI_TOOLBAR_RECENT_TABS_SUB_MENU_MODEL_H_ | 6 #define CHROME_BROWSER_UI_TOOLBAR_RECENT_TABS_SUB_MENU_MODEL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 11 #include "base/task/cancelable_task_tracker.h" |
11 #include "chrome/browser/favicon/favicon_service.h" | 12 #include "chrome/browser/favicon/favicon_service.h" |
12 #include "chrome/browser/sessions/tab_restore_service.h" | 13 #include "chrome/browser/sessions/tab_restore_service.h" |
13 #include "chrome/browser/sessions/tab_restore_service_observer.h" | 14 #include "chrome/browser/sessions/tab_restore_service_observer.h" |
14 #include "chrome/browser/sync/glue/synced_session.h" | 15 #include "chrome/browser/sync/glue/synced_session.h" |
15 #include "chrome/common/cancelable_task_tracker.h" | |
16 #include "ui/base/accelerators/accelerator.h" | 16 #include "ui/base/accelerators/accelerator.h" |
17 #include "ui/base/models/simple_menu_model.h" | 17 #include "ui/base/models/simple_menu_model.h" |
18 | 18 |
19 class Browser; | 19 class Browser; |
20 struct SessionTab; | 20 struct SessionTab; |
21 | 21 |
22 namespace browser_sync { | 22 namespace browser_sync { |
23 class OpenTabsUIDelegate; | 23 class OpenTabsUIDelegate; |
24 } | 24 } |
25 | 25 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 // vector. Upon invocation of the menu, information is retrieved from | 152 // vector. Upon invocation of the menu, information is retrieved from |
153 // |local_window_items_| and used to create the specified window. | 153 // |local_window_items_| and used to create the specified window. |
154 WindowItems local_window_items_; | 154 WindowItems local_window_items_; |
155 | 155 |
156 // Index of the last local entry (recently closed tab or window) in the | 156 // Index of the last local entry (recently closed tab or window) in the |
157 // menumodel. | 157 // menumodel. |
158 int last_local_model_index_; | 158 int last_local_model_index_; |
159 | 159 |
160 gfx::Image default_favicon_; | 160 gfx::Image default_favicon_; |
161 | 161 |
162 CancelableTaskTracker local_tab_cancelable_task_tracker_; | 162 base::CancelableTaskTracker local_tab_cancelable_task_tracker_; |
163 CancelableTaskTracker other_devices_tab_cancelable_task_tracker_; | 163 base::CancelableTaskTracker other_devices_tab_cancelable_task_tracker_; |
164 | 164 |
165 base::WeakPtrFactory<RecentTabsSubMenuModel> weak_ptr_factory_; | 165 base::WeakPtrFactory<RecentTabsSubMenuModel> weak_ptr_factory_; |
166 | 166 |
167 DISALLOW_COPY_AND_ASSIGN(RecentTabsSubMenuModel); | 167 DISALLOW_COPY_AND_ASSIGN(RecentTabsSubMenuModel); |
168 }; | 168 }; |
169 | 169 |
170 #endif // CHROME_BROWSER_UI_TOOLBAR_RECENT_TABS_SUB_MENU_MODEL_H_ | 170 #endif // CHROME_BROWSER_UI_TOOLBAR_RECENT_TABS_SUB_MENU_MODEL_H_ |
OLD | NEW |