Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: chrome/browser/ui/gtk/global_history_menu.h

Issue 10989027: Split TabRestoreService into InMemoryTRS and PersistentTRS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: GYP out InMemoryTRS on non-Android and fix incorrect comments Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/cocoa/history_menu_bridge_unittest.mm ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_GTK_GLOBAL_HISTORY_MENU_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_GLOBAL_HISTORY_MENU_H_
6 #define CHROME_BROWSER_UI_GTK_GLOBAL_HISTORY_MENU_H_ 6 #define CHROME_BROWSER_UI_GTK_GLOBAL_HISTORY_MENU_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "chrome/browser/common/cancelable_request.h" 11 #include "chrome/browser/common/cancelable_request.h"
12 #include "chrome/browser/history/history_types.h" 12 #include "chrome/browser/history/history_types.h"
13 #include "chrome/browser/sessions/tab_restore_service.h" 13 #include "chrome/browser/sessions/tab_restore_service.h"
14 #include "chrome/browser/sessions/tab_restore_service_observer.h" 14 #include "chrome/browser/sessions/tab_restore_service_observer.h"
15 #include "chrome/browser/ui/gtk/global_menu_owner.h" 15 #include "chrome/browser/ui/gtk/global_menu_owner.h"
16 #include "content/public/browser/notification_observer.h" 16 #include "content/public/browser/notification_observer.h"
17 #include "content/public/browser/notification_registrar.h" 17 #include "content/public/browser/notification_registrar.h"
18 #include "ui/base/gtk/gtk_signal.h" 18 #include "ui/base/gtk/gtk_signal.h"
19 #include "ui/base/gtk/owned_widget_gtk.h" 19 #include "ui/base/gtk/owned_widget_gtk.h"
20 20
21 class Browser; 21 class Browser;
22 class Profile;
22 23
23 namespace history { 24 namespace history {
24 class TopSites; 25 class TopSites;
25 } 26 }
26 27
27 typedef struct _GdkPixbuf GdkPixbuf; 28 typedef struct _GdkPixbuf GdkPixbuf;
28 29
29 // Controls the History menu. 30 // Controls the History menu.
30 class GlobalHistoryMenu : public GlobalMenuOwner, 31 class GlobalHistoryMenu : public GlobalMenuOwner,
31 public content::NotificationObserver, 32 public content::NotificationObserver,
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 114
114 TabRestoreService* tab_restore_service_; // weak 115 TabRestoreService* tab_restore_service_; // weak
115 116
116 // A mapping from GtkMenuItems to HistoryItems that maintain data. 117 // A mapping from GtkMenuItems to HistoryItems that maintain data.
117 MenuItemToHistoryMap menu_item_history_map_; 118 MenuItemToHistoryMap menu_item_history_map_;
118 119
119 content::NotificationRegistrar registrar_; 120 content::NotificationRegistrar registrar_;
120 }; 121 };
121 122
122 #endif // CHROME_BROWSER_UI_GTK_GLOBAL_HISTORY_MENU_H_ 123 #endif // CHROME_BROWSER_UI_GTK_GLOBAL_HISTORY_MENU_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/history_menu_bridge_unittest.mm ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698