| 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 "base/task/cancelable_task_tracker.h" |
| 12 #include "base/timer/elapsed_timer.h" | 12 #include "base/timer/elapsed_timer.h" |
| 13 #include "components/favicon/core/favicon_service.h" | 13 #include "components/favicon/core/favicon_service.h" |
| 14 #include "components/sessions/core/tab_restore_service.h" | 14 #include "components/sessions/core/tab_restore_service.h" |
| 15 #include "components/sessions/core/tab_restore_service_observer.h" | 15 #include "components/sessions/core/tab_restore_service_observer.h" |
| 16 #include "components/sync_driver/glue/synced_session.h" | 16 #include "components/sync_sessions/synced_session.h" |
| 17 #include "ui/base/accelerators/accelerator.h" | 17 #include "ui/base/accelerators/accelerator.h" |
| 18 #include "ui/base/models/simple_menu_model.h" | 18 #include "ui/base/models/simple_menu_model.h" |
| 19 | 19 |
| 20 class Browser; | 20 class Browser; |
| 21 | 21 |
| 22 namespace sync_driver { | 22 namespace sync_driver { |
| 23 class OpenTabsUIDelegate; | 23 class OpenTabsUIDelegate; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace favicon_base { | 26 namespace favicon_base { |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 176 |
| 177 // Time the menu is open for until a recent tab is selected. | 177 // Time the menu is open for until a recent tab is selected. |
| 178 base::ElapsedTimer menu_opened_timer_; | 178 base::ElapsedTimer menu_opened_timer_; |
| 179 | 179 |
| 180 base::WeakPtrFactory<RecentTabsSubMenuModel> weak_ptr_factory_; | 180 base::WeakPtrFactory<RecentTabsSubMenuModel> weak_ptr_factory_; |
| 181 | 181 |
| 182 DISALLOW_COPY_AND_ASSIGN(RecentTabsSubMenuModel); | 182 DISALLOW_COPY_AND_ASSIGN(RecentTabsSubMenuModel); |
| 183 }; | 183 }; |
| 184 | 184 |
| 185 #endif // CHROME_BROWSER_UI_TOOLBAR_RECENT_TABS_SUB_MENU_MODEL_H_ | 185 #endif // CHROME_BROWSER_UI_TOOLBAR_RECENT_TABS_SUB_MENU_MODEL_H_ |
| OLD | NEW |