| 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/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/task/cancelable_task_tracker.h" | 14 #include "base/task/cancelable_task_tracker.h" |
| 15 #import "chrome/browser/favicon/favicon_service.h" | 15 #import "chrome/browser/favicon/favicon_service.h" |
| 16 #include "chrome/browser/history/history_service.h" | 16 #include "chrome/browser/history/history_service.h" |
| 17 #include "chrome/browser/sessions/session_id.h" | |
| 18 #include "chrome/browser/sessions/tab_restore_service.h" | 17 #include "chrome/browser/sessions/tab_restore_service.h" |
| 19 #include "chrome/browser/sessions/tab_restore_service_observer.h" | 18 #include "chrome/browser/sessions/tab_restore_service_observer.h" |
| 20 #import "chrome/browser/ui/cocoa/main_menu_item.h" | 19 #import "chrome/browser/ui/cocoa/main_menu_item.h" |
| 20 #include "components/sessions/session_id.h" |
| 21 #include "content/public/browser/notification_observer.h" | 21 #include "content/public/browser/notification_observer.h" |
| 22 | 22 |
| 23 class NotificationRegistrar; | 23 class NotificationRegistrar; |
| 24 class PageUsageData; | 24 class PageUsageData; |
| 25 class Profile; | 25 class Profile; |
| 26 class TabRestoreService; | 26 class TabRestoreService; |
| 27 @class HistoryMenuCocoaController; | 27 @class HistoryMenuCocoaController; |
| 28 | 28 |
| 29 namespace { | 29 namespace { |
| 30 class HistoryMenuBridgeTest; | 30 class HistoryMenuBridgeTest; |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 bool create_in_progress_; | 223 bool create_in_progress_; |
| 224 bool need_recreate_; | 224 bool need_recreate_; |
| 225 | 225 |
| 226 // The default favicon if a HistoryItem does not have one. | 226 // The default favicon if a HistoryItem does not have one. |
| 227 base::scoped_nsobject<NSImage> default_favicon_; | 227 base::scoped_nsobject<NSImage> default_favicon_; |
| 228 | 228 |
| 229 DISALLOW_COPY_AND_ASSIGN(HistoryMenuBridge); | 229 DISALLOW_COPY_AND_ASSIGN(HistoryMenuBridge); |
| 230 }; | 230 }; |
| 231 | 231 |
| 232 #endif // CHROME_BROWSER_UI_COCOA_HISTORY_MENU_BRIDGE_H_ | 232 #endif // CHROME_BROWSER_UI_COCOA_HISTORY_MENU_BRIDGE_H_ |
| OLD | NEW |