| Index: chrome/browser/ui/gtk/global_history_menu.h
|
| diff --git a/chrome/browser/ui/gtk/global_history_menu.h b/chrome/browser/ui/gtk/global_history_menu.h
|
| index fff3c998231acd658594dd8a256a338a9aac9701..38d6488dea8fc2738fe9c226d3520e66f1f37849 100644
|
| --- a/chrome/browser/ui/gtk/global_history_menu.h
|
| +++ b/chrome/browser/ui/gtk/global_history_menu.h
|
| @@ -7,15 +7,21 @@
|
|
|
| #include <map>
|
|
|
| -#include "content/browser/cancelable_request.h"
|
| #include "chrome/browser/favicon_service.h"
|
| +#include "chrome/browser/history/history_types.h"
|
| #include "chrome/browser/sessions/tab_restore_service.h"
|
| #include "chrome/browser/sessions/tab_restore_service_observer.h"
|
| +#include "content/browser/cancelable_request.h"
|
| #include "content/common/notification_observer.h"
|
| #include "content/common/notification_registrar.h"
|
| #include "ui/base/gtk/gtk_signal.h"
|
|
|
| class Browser;
|
| +
|
| +namespace history {
|
| +class TopSites;
|
| +}
|
| +
|
| typedef struct _GdkPixbuf GdkPixbuf;
|
|
|
| // Controls the History menu.
|
| @@ -36,6 +42,12 @@ class GlobalHistoryMenu : public NotificationObserver,
|
|
|
| typedef std::map<GtkWidget*, HistoryItem*> MenuItemToHistoryMap;
|
|
|
| + // Sends a message off to History for data.
|
| + void GetTopSitesData();
|
| +
|
| + // Callback to receive data requested from GetTopSitesData().
|
| + void OnTopSitesReceived(const history::MostVisitedURLList& visited_list);
|
| +
|
| // Returns the currently existing HistoryItem associated with
|
| // |menu_item|. Can return NULL.
|
| HistoryItem* HistoryItemForMenuItem(GtkWidget* menu_item);
|
| @@ -91,6 +103,9 @@ class GlobalHistoryMenu : public NotificationObserver,
|
| Browser* browser_;
|
| Profile* profile_;
|
|
|
| + history::TopSites* top_sites_;
|
| + CancelableRequestConsumer top_sites_consumer_;
|
| +
|
| NotificationRegistrar registrar_;
|
|
|
| GdkPixbuf* default_favicon_;
|
|
|