OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_COCOA_HISTORY_MENU_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_HISTORY_MENU_BRIDGE_H_ |
6 #define CHROME_BROWSER_UI_COCOA_HISTORY_MENU_BRIDGE_H_ | 6 #define CHROME_BROWSER_UI_COCOA_HISTORY_MENU_BRIDGE_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/mac/scoped_nsobject.h" | 12 #include "base/mac/scoped_nsobject.h" |
| 13 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
14 #include "base/scoped_observer.h" | 15 #include "base/scoped_observer.h" |
15 #include "base/task/cancelable_task_tracker.h" | 16 #include "base/task/cancelable_task_tracker.h" |
16 #import "chrome/browser/ui/cocoa/main_menu_item.h" | 17 #import "chrome/browser/ui/cocoa/main_menu_item.h" |
17 #import "components/favicon/core/favicon_service.h" | 18 #import "components/favicon/core/favicon_service.h" |
18 #include "components/history/core/browser/history_service.h" | 19 #include "components/history/core/browser/history_service.h" |
19 #include "components/history/core/browser/history_service_observer.h" | 20 #include "components/history/core/browser/history_service_observer.h" |
20 #include "components/sessions/core/session_id.h" | 21 #include "components/sessions/core/session_id.h" |
21 #include "components/sessions/core/tab_restore_service.h" | 22 #include "components/sessions/core/tab_restore_service.h" |
22 #include "components/sessions/core/tab_restore_service_observer.h" | 23 #include "components/sessions/core/tab_restore_service_observer.h" |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 // The default favicon if a HistoryItem does not have one. | 238 // The default favicon if a HistoryItem does not have one. |
238 base::scoped_nsobject<NSImage> default_favicon_; | 239 base::scoped_nsobject<NSImage> default_favicon_; |
239 | 240 |
240 ScopedObserver<history::HistoryService, history::HistoryServiceObserver> | 241 ScopedObserver<history::HistoryService, history::HistoryServiceObserver> |
241 history_service_observer_; | 242 history_service_observer_; |
242 | 243 |
243 DISALLOW_COPY_AND_ASSIGN(HistoryMenuBridge); | 244 DISALLOW_COPY_AND_ASSIGN(HistoryMenuBridge); |
244 }; | 245 }; |
245 | 246 |
246 #endif // CHROME_BROWSER_UI_COCOA_HISTORY_MENU_BRIDGE_H_ | 247 #endif // CHROME_BROWSER_UI_COCOA_HISTORY_MENU_BRIDGE_H_ |
OLD | NEW |