Home
last modified time | relevance | path

Searched refs:TabRestoreService (Results 1 – 25 of 42) sorted by relevance

12

/external/chromium_org/chrome/browser/sessions/
Dtab_restore_service.cc11 TabRestoreService::TimeFactory::~TimeFactory() {} in ~TimeFactory()
18 TabRestoreService::Entry::Entry() in Entry()
23 TabRestoreService::Entry::Entry(Type type) in Entry()
28 TabRestoreService::Entry::~Entry() {} in ~Entry()
32 TabRestoreService::Tab::Tab() in Tab()
40 TabRestoreService::Tab::~Tab() { in ~Tab()
45 TabRestoreService::Window::Window() : Entry(WINDOW), selected_tab_index(-1) { in Window()
48 TabRestoreService::Window::~Window() { in ~Window()
53 TabRestoreService::~TabRestoreService() { in ~TabRestoreService()
Dpersistent_tab_restore_service_unittest.cc35 typedef TabRestoreService::Tab Tab;
36 typedef TabRestoreService::Window Window;
45 class PersistentTabRestoreTimeFactory : public TabRestoreService::TimeFactory {
93 TabRestoreService::Entries* mutable_entries() { in mutable_entries()
184 virtual void TabRestoreServiceChanged(TabRestoreService* service) OVERRIDE { in TabRestoreServiceChanged()
186 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) OVERRIDE { in TabRestoreServiceDestroyed()
188 virtual void TabRestoreServiceLoaded(TabRestoreService* service) OVERRIDE { in TabRestoreServiceLoaded()
211 TabRestoreService::Entry* entry = service_->entries().front(); in TEST_F()
212 ASSERT_EQ(TabRestoreService::TAB, entry->type); in TEST_F()
236 ASSERT_EQ(TabRestoreService::TAB, entry->type); in TEST_F()
[all …]
Dtab_restore_service_helper.h20 class TabRestoreService; variable
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,
168 TabRestoreService* const tab_restore_service_;
Dtab_restore_service_observer.h8 class TabRestoreService; variable
15 virtual void TabRestoreServiceChanged(TabRestoreService* service) = 0;
19 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) = 0;
22 virtual void TabRestoreServiceLoaded(TabRestoreService* service) {} in TabRestoreServiceLoaded()
Dtab_restore_service_factory.cc12 TabRestoreService* TabRestoreServiceFactory::GetForProfile(Profile* profile) { in GetForProfile()
13 return static_cast<TabRestoreService*>( in GetForProfile()
18 TabRestoreService* TabRestoreServiceFactory::GetForProfileIfExisting( in GetForProfileIfExisting()
20 return static_cast<TabRestoreService*>( in GetForProfileIfExisting()
Dpersistent_tab_restore_service_browsertest.cc21 typedef TabRestoreService::Window Window;
27 TabRestoreService* trs = TabRestoreServiceFactory::GetForProfile(profile); in IN_PROC_BROWSER_TEST_F()
39 const TabRestoreService::Entry* restored_entry = trs->entries().front(); in IN_PROC_BROWSER_TEST_F()
42 ASSERT_EQ(TabRestoreService::WINDOW, restored_entry->type); in IN_PROC_BROWSER_TEST_F()
Dtab_restore_service_helper.cc38 void RecordAppLaunch(Profile* profile, const TabRestoreService::Tab& tab) { in RecordAppLaunch()
71 TabRestoreService* tab_restore_service, in TabRestoreServiceHelper()
74 TabRestoreService::TimeFactory* time_factory) in TabRestoreServiceHelper()
170 const TabRestoreService::Entries& TabRestoreServiceHelper::entries() const { in entries()
185 TabRestoreService::Tab* TabRestoreServiceHelper::RemoveTabEntryById( in RemoveTabEntryById()
192 if (entry->type != TabRestoreService::TAB) in RemoveTabEntryById()
228 if (entry->type == TabRestoreService::TAB) { in RestoreEntryById()
235 } else if (entry->type == TabRestoreService::WINDOW) { in RestoreEntryById()
354 for (TabRestoreService::Entries::const_iterator iter = entries_.begin(); in PruneEntries()
356 TabRestoreService::Entry* entry = *iter; in PruneEntries()
[all …]
Dtab_restore_service_factory.h11 class TabRestoreService; variable
19 static TabRestoreService* GetForProfile(Profile* profile);
23 static TabRestoreService* GetForProfileIfExisting(Profile* profile);
Din_memory_tab_restore_service.cc15 TabRestoreService::TimeFactory* time_factory) in InMemoryTabRestoreService()
51 const TabRestoreService::Entries& InMemoryTabRestoreService::entries() const { in entries()
62 TabRestoreService::Tab* InMemoryTabRestoreService::RemoveTabEntryById( in RemoveTabEntryById()
/external/chromium_org/chrome/browser/android/
Drecently_closed_tabs_bridge.cc25 TabRestoreService::Entry* entry, in AddTabToList()
27 const TabRestoreService::Tab* tab = in AddTabToList()
28 static_cast<TabRestoreService::Tab*>(entry); in AddTabToList()
39 const TabRestoreService::Entries& entries, in AddTabsToList()
43 for (TabRestoreService::Entries::const_iterator it = entries.begin(); in AddTabsToList()
45 TabRestoreService::Entry* entry = *it; in AddTabsToList()
46 DCHECK_EQ(entry->type, TabRestoreService::TAB); in AddTabsToList()
47 if (entry->type == TabRestoreService::TAB) { in AddTabsToList()
99 scoped_ptr<TabRestoreService::Tab> tab_entry( in OpenRecentlyClosedTab()
132 TabRestoreService* service) { in TabRestoreServiceChanged()
[all …]
Drecently_closed_tabs_bridge.h15 class TabRestoreService; variable
37 virtual void TabRestoreServiceChanged(TabRestoreService* service) OVERRIDE;
40 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) OVERRIDE;
59 TabRestoreService* tab_restore_service_;
/external/chromium_org/chrome/browser/ui/
Dbrowser_tab_restorer.cc40 virtual void TabRestoreServiceChanged(TabRestoreService* service) OVERRIDE;
41 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) OVERRIDE;
42 virtual void TabRestoreServiceLoaded(TabRestoreService* service) OVERRIDE;
48 TabRestoreService* tab_restore_service_;
80 void BrowserTabRestorer::TabRestoreServiceChanged(TabRestoreService* service) { in TabRestoreServiceChanged()
84 TabRestoreService* service) { in TabRestoreServiceDestroyed()
87 void BrowserTabRestorer::TabRestoreServiceLoaded(TabRestoreService* service) { in TabRestoreServiceLoaded()
102 TabRestoreService* service = in RestoreTab()
Dbrowser_command_controller.h99 virtual void TabRestoreServiceChanged(TabRestoreService* service) OVERRIDE;
100 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) OVERRIDE;
101 virtual void TabRestoreServiceLoaded(TabRestoreService* service) OVERRIDE;
/external/chromium_org/chrome/browser/ui/ash/
Dchrome_new_window_delegate.cc22 TabRestoreService* service = TabRestoreServiceFactory::GetForProfile(profile); in RestoreTabUsingProfile()
45 TabRestoreService* service) in TabRestoreHelper()
56 TabRestoreService* tab_restore_service() { return tab_restore_service_; } in tab_restore_service()
58 virtual void TabRestoreServiceChanged(TabRestoreService* service) OVERRIDE { in TabRestoreServiceChanged()
61 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) OVERRIDE { in TabRestoreServiceDestroyed()
66 virtual void TabRestoreServiceLoaded(TabRestoreService* service) OVERRIDE { in TabRestoreServiceLoaded()
75 TabRestoreService* tab_restore_service_;
112 TabRestoreService* service = in RestoreTab()
/external/chromium_org/chrome/browser/ui/webui/ntp/
Drecently_closed_tabs_handler.cc22 void TabToValue(const TabRestoreService::Tab& tab, in TabToValue()
32 void WindowToValue(const TabRestoreService::Window& window, in WindowToValue()
113 TabRestoreService* service) { in TabRestoreServiceChanged()
120 for (TabRestoreService::Entries::const_iterator it = in TabRestoreServiceChanged()
123 TabRestoreService::Entry* entry = *it; in TabRestoreServiceChanged()
125 if (entry->type == TabRestoreService::TAB) { in TabRestoreServiceChanged()
126 TabToValue(*static_cast<TabRestoreService::Tab*>(entry), in TabRestoreServiceChanged()
129 DCHECK_EQ(entry->type, TabRestoreService::WINDOW); in TabRestoreServiceChanged()
130 WindowToValue(*static_cast<TabRestoreService::Window*>(entry), in TabRestoreServiceChanged()
143 TabRestoreService* service) { in TabRestoreServiceDestroyed()
Drecently_closed_tabs_handler.h13 class TabRestoreService; variable
38 virtual void TabRestoreServiceChanged(TabRestoreService* service) OVERRIDE;
42 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) OVERRIDE;
50 TabRestoreService* tab_restore_service_;
/external/chromium_org/chrome/browser/
Djumplist_win.cc198 TabRestoreService* tab_restore_service = in JumpList()
272 TabRestoreService* tab_restore_service = in Terminate()
307 void JumpList::TabRestoreServiceChanged(TabRestoreService* service) { in TabRestoreServiceChanged()
326 TabRestoreService* tab_restore_service = in TabRestoreServiceChanged()
328 const TabRestoreService::Entries& entries = tab_restore_service->entries(); in TabRestoreServiceChanged()
329 for (TabRestoreService::Entries::const_iterator it = entries.begin(); in TabRestoreServiceChanged()
331 const TabRestoreService::Entry* entry = *it; in TabRestoreServiceChanged()
332 if (entry->type == TabRestoreService::TAB) { in TabRestoreServiceChanged()
333 AddTab(static_cast<const TabRestoreService::Tab*>(entry), in TabRestoreServiceChanged()
335 } else if (entry->type == TabRestoreService::WINDOW) { in TabRestoreServiceChanged()
[all …]
Djumplist_win.h68 virtual void TabRestoreServiceChanged(TabRestoreService* service);
72 virtual void TabRestoreServiceDestroyed(TabRestoreService* service);
96 bool AddTab(const TabRestoreService::Tab* tab,
99 void AddWindow(const TabRestoreService::Window* window,
/external/chromium_org/chrome/browser/extensions/api/sessions/
Dsessions_api.h37 scoped_ptr<api::tabs::Tab> CreateTabModel(const TabRestoreService::Tab& tab,
41 const TabRestoreService::Window& window,
44 const TabRestoreService::Entry* entry);
92 virtual void TabRestoreServiceChanged(TabRestoreService* service) OVERRIDE;
96 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) OVERRIDE;
102 TabRestoreService* tab_restore_service_;
Dsessions_api.cc137 bool is_tab_entry(const TabRestoreService::Entry* entry) { in is_tab_entry()
138 return entry->type == TabRestoreService::TAB; in is_tab_entry()
141 bool is_window_entry(const TabRestoreService::Entry* entry) { in is_window_entry()
142 return entry->type == TabRestoreService::WINDOW; in is_window_entry()
146 const TabRestoreService::Tab& tab, int session_id, int selected_index) { in CreateTabModel()
158 const TabRestoreService::Window& window, in CreateWindowModel()
178 const TabRestoreService::Entry* entry) { in CreateSessionModel()
182 case TabRestoreService::TAB: in CreateSessionModel()
184 *static_cast<const TabRestoreService::Tab*>(entry), entry->id, -1); in CreateSessionModel()
186 case TabRestoreService::WINDOW: in CreateSessionModel()
[all …]
/external/chromium_org/chrome/browser/ui/cocoa/
Dhistory_menu_bridge.h26 class TabRestoreService; variable
135 virtual void TabRestoreServiceChanged(TabRestoreService* service) OVERRIDE;
136 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) OVERRIDE;
185 HistoryItem* HistoryItemForTab(const TabRestoreService::Tab& entry);
210 TabRestoreService* tab_restore_service_; // weak
/external/chromium_org/chrome/browser/ui/toolbar/
Drecent_tabs_sub_menu_model.cc180 TabRestoreService* service = in RecentTabsSubMenuModel()
215 TabRestoreService* service = in ~RecentTabsSubMenuModel()
268 TabRestoreService* service = in ExecuteCommand()
380 TabRestoreService* service = in BuildLocalEntries()
397 TabRestoreService::Entries entries = service->entries(); in BuildLocalEntries()
398 for (TabRestoreService::Entries::const_iterator it = entries.begin(); in BuildLocalEntries()
400 TabRestoreService::Entry* entry = *it; in BuildLocalEntries()
401 if (entry->type == TabRestoreService::TAB) { in BuildLocalEntries()
402 TabRestoreService::Tab* tab = in BuildLocalEntries()
403 static_cast<TabRestoreService::Tab*>(entry); in BuildLocalEntries()
[all …]
/external/chromium_org/chrome/browser/ui/views/frame/
Dglobal_menu_bar_x11.h94 HistoryItem* HistoryItemForTab(const TabRestoreService::Tab& entry);
139 virtual void TabRestoreServiceChanged(TabRestoreService* service) OVERRIDE;
140 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) OVERRIDE;
178 TabRestoreService* tab_restore_service_; // weak
Dglobal_menu_bar_x11.cc537 const TabRestoreService::Tab& entry) { in HistoryItemForTab()
741 void GlobalMenuBarX11::TabRestoreServiceChanged(TabRestoreService* service) { in TabRestoreServiceChanged()
742 const TabRestoreService::Entries& entries = service->entries(); in TabRestoreServiceChanged()
752 for (TabRestoreService::Entries::const_iterator it = entries.begin(); in TabRestoreServiceChanged()
754 TabRestoreService::Entry* entry = *it; in TabRestoreServiceChanged()
756 if (entry->type == TabRestoreService::WINDOW) { in TabRestoreServiceChanged()
757 TabRestoreService::Window* entry_win = in TabRestoreServiceChanged()
758 static_cast<TabRestoreService::Window*>(entry); in TabRestoreServiceChanged()
759 std::vector<TabRestoreService::Tab>& tabs = entry_win->tabs; in TabRestoreServiceChanged()
799 std::vector<TabRestoreService::Tab>::const_iterator iter; in TabRestoreServiceChanged()
[all …]
Dsystem_menu_model_delegate.cc51 TabRestoreService* trs = in IsCommandIdEnabled()
75 TabRestoreService* trs = in GetLabelForCommandId()
79 trs->entries().front()->type == TabRestoreService::WINDOW) in GetLabelForCommandId()

12