HomeSort by relevance Sort by last modified time
    Searched refs:TabRestoreService (Results 1 - 25 of 60) sorted by null

1 2 3

  /external/chromium_org/chrome/browser/sessions/
tab_restore_service_observer.h 8 class TabRestoreService;
10 // Observer is notified when the set of entries managed by TabRestoreService
15 virtual void TabRestoreServiceChanged(TabRestoreService* service) = 0;
17 // Sent to all remaining Observers when TabRestoreService's
19 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) = 0;
21 // Sent when TabRestoreService finishes loading.
22 virtual void TabRestoreServiceLoaded(TabRestoreService* service) {}
tab_restore_service.cc 11 TabRestoreService::TimeFactory::~TimeFactory() {}
18 TabRestoreService::Entry::Entry()
23 TabRestoreService::Entry::Entry(Type type)
28 TabRestoreService::Entry::~Entry() {}
32 TabRestoreService::Tab::Tab()
40 TabRestoreService::Tab::~Tab() {
45 TabRestoreService::Window::Window() : Entry(WINDOW), selected_tab_index(-1) {
48 TabRestoreService::Window::~Window() {
51 // TabRestoreService ----------------------------------------------------------
53 TabRestoreService::~TabRestoreService()
    [all...]
tab_restore_service_factory.h 11 class TabRestoreService;
16 // the associated TabRestoreService.
19 static TabRestoreService* GetForProfile(Profile* profile);
21 // Variant of GetForProfile() that returns NULL if TabRestoreService does not
23 static TabRestoreService* GetForProfileIfExisting(Profile* profile);
tab_restore_service_factory.cc 12 TabRestoreService* TabRestoreServiceFactory::GetForProfile(Profile* profile) {
13 return static_cast<TabRestoreService*>(
18 TabRestoreService* TabRestoreServiceFactory::GetForProfileIfExisting(
20 return static_cast<TabRestoreService*>(
37 "TabRestoreService",
persistent_tab_restore_service_browsertest.cc 21 typedef TabRestoreService::Window Window;
27 TabRestoreService* trs = TabRestoreServiceFactory::GetForProfile(profile);
39 const TabRestoreService::Entry* restored_entry = trs->entries().front();
42 ASSERT_EQ(TabRestoreService::WINDOW, restored_entry->type);
tab_restore_service_helper.h 20 class TabRestoreService;
35 typedef TabRestoreService::Entries Entries;
36 typedef TabRestoreService::Entry Entry;
37 typedef TabRestoreService::Tab Tab;
38 typedef TabRestoreService::TimeFactory TimeFactory;
39 typedef TabRestoreService::Window Window;
68 TabRestoreServiceHelper(TabRestoreService* tab_restore_service,
75 // Helper methods used to implement TabRestoreService.
168 TabRestoreService* const tab_restore_service_;
in_memory_tab_restore_service.cc 15 TabRestoreService::TimeFactory* time_factory)
51 const TabRestoreService::Entries& InMemoryTabRestoreService::entries() const {
62 TabRestoreService::Tab* InMemoryTabRestoreService::RemoveTabEntryById(
persistent_tab_restore_service_unittest.cc 33 typedef TabRestoreService::Tab Tab;
34 typedef TabRestoreService::Window Window;
43 class PersistentTabRestoreTimeFactory : public TabRestoreService::TimeFactory {
91 TabRestoreService::Entries* mutable_entries() {
184 virtual void TabRestoreServiceChanged(TabRestoreService* service) OVERRIDE {
186 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) OVERRIDE {
188 virtual void TabRestoreServiceLoaded(TabRestoreService* service) OVERRIDE {
211 TabRestoreService::Entry* entry = service_->entries().front();
212 ASSERT_EQ(TabRestoreService::TAB, entry->type);
236 ASSERT_EQ(TabRestoreService::TAB, entry->type)
    [all...]
  /external/chromium/chrome/browser/sessions/
tab_restore_service_observer.h 8 class TabRestoreService;
10 // Observer is notified when the set of entries managed by TabRestoreService
15 virtual void TabRestoreServiceChanged(TabRestoreService* service) = 0;
17 // Sent to all remaining Observers when TabRestoreService's
19 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) = 0;
tab_restore_service_browsertest.cc 19 class TabRestoreTimeFactory : public TabRestoreService::TimeFactory {
49 service_ = new TabRestoreService(profile(), time_factory_);
78 service_ = new TabRestoreService(profile(), time_factory_);
117 scoped_refptr<TabRestoreService> service_;
132 TabRestoreService::Entry* entry = service_->entries().front();
133 ASSERT_EQ(TabRestoreService::TAB, entry->type);
134 TabRestoreService::Tab* tab = static_cast<TabRestoreService::Tab*>(entry);
155 ASSERT_EQ(TabRestoreService::TAB, entry->type);
156 tab = static_cast<TabRestoreService::Tab*>(entry)
    [all...]
tab_restore_service.cc 34 TabRestoreService::TimeFactory::~TimeFactory() {}
41 TabRestoreService::Entry::Entry()
46 TabRestoreService::Entry::Entry(Type type)
51 TabRestoreService::Entry::~Entry() {}
53 // TabRestoreService ----------------------------------------------------------
56 const size_t TabRestoreService::kMaxEntries = 10;
118 typedef std::map<SessionID::id_type, TabRestoreService::Entry*> IDToEntry;
125 std::vector<TabRestoreService::Entry*>* entries) {
140 if (i->second->type == TabRestoreService::WINDOW) {
141 TabRestoreService::Window* window
    [all...]
session_restore_browsertest.cc 129 TabRestoreService* service = browser()->profile()->GetTabRestoreService();
136 ASSERT_EQ(TabRestoreService::WINDOW, service->entries().front()->type);
137 const TabRestoreService::Window* window =
138 static_cast<TabRestoreService::Window*>(service->entries().front());
143 std::vector<TabRestoreService::Tab>::const_iterator it = window->tabs.begin();
145 const TabRestoreService::Tab& tab = *it;
155 ASSERT_EQ(TabRestoreService::WINDOW, service->entries().front()->type);
156 window = static_cast<TabRestoreService::Window*>(service->entries().front());
168 TabRestoreService* service = browser()->profile()->GetTabRestoreService();
177 ASSERT_EQ(TabRestoreService::TAB, service->entries().front()->type)
    [all...]
  /external/chromium/chrome/browser/ui/webui/
value_helper.h 13 // Used to convert TabRestoreService elements to values for JSON processing.
16 static bool TabToValue(const TabRestoreService::Tab& tab,
18 static bool WindowToValue(const TabRestoreService::Window& window,
  /external/chromium_org/chrome/browser/ui/webui/ntp/
recently_closed_tabs_handler.h 13 class TabRestoreService;
25 // currently displayed tab to be the one in TabRestoreService with a
38 virtual void TabRestoreServiceChanged(TabRestoreService* service) OVERRIDE;
40 // Observer callback to notice when our associated TabRestoreService
42 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) OVERRIDE;
44 // Converts a list of TabRestoreService entries to the JSON format required
47 const TabRestoreService::Entries& entries,
55 // TabRestoreService that we are observing.
56 TabRestoreService* tab_restore_service_;
recently_closed_tabs_handler.cc 27 void TabToValue(const TabRestoreService::Tab& tab,
37 void WindowToValue(const TabRestoreService::Window& window,
80 // Find and remove the corresponding tab entry from TabRestoreService.
82 scoped_ptr<TabRestoreService::Tab> tab_entry(
136 TabRestoreService* service) {
138 TabRestoreService::Entries entries = service->entries();
145 TabRestoreService* service) {
151 const TabRestoreService::Entries& entries, ListValue* entry_list_value) {
157 for (TabRestoreService::Entries::const_iterator it = entries.begin();
159 TabRestoreService::Entry* entry = *it
    [all...]
  /external/chromium_org/chrome/browser/android/
recently_closed_tabs_bridge.h 15 class TabRestoreService;
36 virtual void TabRestoreServiceChanged(TabRestoreService* service) OVERRIDE;
38 // Observer callback when our associated TabRestoreService is destroyed.
39 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) OVERRIDE;
57 // TabRestoreService that we are observing.
58 TabRestoreService* tab_restore_service_;
recently_closed_tabs_bridge.cc 25 TabRestoreService::Entry* entry,
27 const TabRestoreService::Tab* tab =
28 static_cast<TabRestoreService::Tab*>(entry);
39 const TabRestoreService::Entries& entries,
43 for (TabRestoreService::Entries::const_iterator it = entries.begin();
45 TabRestoreService::Entry* entry = *it;
46 DCHECK_EQ(entry->type, TabRestoreService::TAB);
47 if (entry->type == TabRestoreService::TAB) {
96 // Find and remove the corresponding tab entry from TabRestoreService.
98 scoped_ptr<TabRestoreService::Tab> tab_entry
    [all...]
  /external/chromium_org/chrome/browser/ui/ash/
chrome_new_window_delegate.cc 22 TabRestoreService* service = TabRestoreServiceFactory::GetForProfile(profile);
37 // attempts to a restore a tab if the TabRestoreService hasn't finished loading
38 // this waits for it. Once the TabRestoreService finishes loading the tab is
45 TabRestoreService* service)
56 TabRestoreService* tab_restore_service() { return tab_restore_service_; }
58 virtual void TabRestoreServiceChanged(TabRestoreService* service) OVERRIDE {
61 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) OVERRIDE {
66 virtual void TabRestoreServiceLoaded(TabRestoreService* service) OVERRIDE {
75 TabRestoreService* tab_restore_service_;
112 TabRestoreService* service
    [all...]
  /external/chromium_org/chrome/browser/ui/gtk/
global_history_menu.h 60 bool HasValidHistoryItemForTab(const TabRestoreService::Tab& entry);
63 HistoryItem* HistoryItemForTab(const TabRestoreService::Tab& entry);
91 virtual void TabRestoreServiceChanged(TabRestoreService* service) OVERRIDE;
92 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) OVERRIDE;
97 // TabRestoreService. With how the global menus work, I'd prefer to register
98 // with the TabRestoreService as soon as we're constructed, but this breaks
100 // construction ordering while us connecting to the TabRestoreService loads
113 TabRestoreService* tab_restore_service_; // weak
  /external/chromium/chrome/browser/ui/cocoa/
history_menu_bridge.h 27 class TabRestoreService;
38 // HistoryService and the TabRestoreService, and then updates the NSMenu when
92 // TabRestoreService to re-open the closed window or tab that this
132 virtual void TabRestoreServiceChanged(TabRestoreService* service);
133 virtual void TabRestoreServiceDestroyed(TabRestoreService* service);
179 HistoryItem* HistoryItemForTab(const TabRestoreService::Tab& entry);
204 TabRestoreService* tab_restore_service_; // weak
  /external/chromium_org/chrome/browser/ui/views/frame/
system_menu_model_delegate.cc 50 TabRestoreService* trs =
52 if (trs && trs->entries().front()->type == TabRestoreService::WINDOW)
global_menu_bar_x11.h 89 HistoryItem* HistoryItemForTab(const TabRestoreService::Tab& entry);
126 virtual void TabRestoreServiceChanged(TabRestoreService* service) OVERRIDE;
127 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) OVERRIDE;
158 TabRestoreService* tab_restore_service_; // weak
  /external/chromium/chrome/browser/
jumplist_win.h 109 // When the TabRestoreService object notifies the tab status is changed, this
114 // Observer callback for TabRestoreService::Observer to notify when a tab is
119 virtual void TabRestoreServiceChanged(TabRestoreService* service);
121 // Observer callback to notice when our associated TabRestoreService
123 virtual void TabRestoreServiceDestroyed(TabRestoreService* service);
138 bool AddTab(const TabRestoreService::Tab* tab,
141 bool AddWindow(const TabRestoreService::Window* window,
  /external/chromium_org/chrome/browser/ui/cocoa/
history_menu_bridge.h 27 class TabRestoreService;
40 // HistoryService and the TabRestoreService, and then updates the NSMenu when
95 // TabRestoreService to re-open the closed window or tab that this
135 virtual void TabRestoreServiceChanged(TabRestoreService* service) OVERRIDE;
136 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) OVERRIDE;
186 HistoryItem* HistoryItemForTab(const TabRestoreService::Tab& entry);
211 TabRestoreService* tab_restore_service_; // weak
  /external/chromium_org/chrome/browser/extensions/api/sessions/
sessions_api.h 36 scoped_ptr<api::tabs::Tab> CreateTabModel(const TabRestoreService::Tab& tab,
40 const TabRestoreService::Window& window,
43 const TabRestoreService::Entry* entry);

Completed in 642 milliseconds

1 2 3