Home
last modified time | relevance | path

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

12

/external/chromium/chrome/browser/sessions/
Dtab_restore_service_browsertest.cc19 class TabRestoreTimeFactory : public TabRestoreService::TimeFactory {
49 service_ = new TabRestoreService(profile(), time_factory_); in SetUp()
78 service_ = new TabRestoreService(profile(), time_factory_); in RecreateService()
117 scoped_refptr<TabRestoreService> service_;
132 TabRestoreService::Entry* entry = service_->entries().front(); in TEST_F()
133 ASSERT_EQ(TabRestoreService::TAB, entry->type); in TEST_F()
134 TabRestoreService::Tab* tab = static_cast<TabRestoreService::Tab*>(entry); in TEST_F()
155 ASSERT_EQ(TabRestoreService::TAB, entry->type); in TEST_F()
156 tab = static_cast<TabRestoreService::Tab*>(entry); in TEST_F()
188 TabRestoreService::Entry* entry = service_->entries().front(); in TEST_F()
[all …]
Dtab_restore_service.cc34 TabRestoreService::TimeFactory::~TimeFactory() {} in ~TimeFactory()
41 TabRestoreService::Entry::Entry() in Entry()
46 TabRestoreService::Entry::Entry(Type type) in Entry()
51 TabRestoreService::Entry::~Entry() {} in ~Entry()
56 const size_t TabRestoreService::kMaxEntries = 10;
118 typedef std::map<SessionID::id_type, TabRestoreService::Entry*> IDToEntry;
125 std::vector<TabRestoreService::Entry*>* entries) { in RemoveEntryByID()
140 if (i->second->type == TabRestoreService::WINDOW) { in RemoveEntryByID()
141 TabRestoreService::Window* window = in RemoveEntryByID()
142 static_cast<TabRestoreService::Window*>(i->second); in RemoveEntryByID()
[all …]
Dsession_restore_browsertest.cc129 TabRestoreService* service = browser()->profile()->GetTabRestoreService(); in IN_PROC_BROWSER_TEST_F()
136 ASSERT_EQ(TabRestoreService::WINDOW, service->entries().front()->type); in IN_PROC_BROWSER_TEST_F()
137 const TabRestoreService::Window* window = in IN_PROC_BROWSER_TEST_F()
138 static_cast<TabRestoreService::Window*>(service->entries().front()); in IN_PROC_BROWSER_TEST_F()
143 std::vector<TabRestoreService::Tab>::const_iterator it = window->tabs.begin(); in IN_PROC_BROWSER_TEST_F()
145 const TabRestoreService::Tab& tab = *it; in IN_PROC_BROWSER_TEST_F()
155 ASSERT_EQ(TabRestoreService::WINDOW, service->entries().front()->type); in IN_PROC_BROWSER_TEST_F()
156 window = static_cast<TabRestoreService::Window*>(service->entries().front()); in IN_PROC_BROWSER_TEST_F()
168 TabRestoreService* service = browser()->profile()->GetTabRestoreService(); in IN_PROC_BROWSER_TEST_F()
177 ASSERT_EQ(TabRestoreService::TAB, service->entries().front()->type); in IN_PROC_BROWSER_TEST_F()
[all …]
Dtab_restore_service_observer.h8 class TabRestoreService; variable
15 virtual void TabRestoreServiceChanged(TabRestoreService* service) = 0;
19 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) = 0;
Dtab_restore_service.h37 class TabRestoreService : public BaseSessionService {
120 explicit TabRestoreService(Profile* profile,
175 virtual ~TabRestoreService();
341 DISALLOW_COPY_AND_ASSIGN(TabRestoreService);
/external/chromium/chrome/browser/ui/cocoa/
Dhistory_menu_bridge.h27 class TabRestoreService; variable
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
Dhistory_menu_bridge.mm160 void HistoryMenuBridge::TabRestoreServiceChanged(TabRestoreService* service) {
161 const TabRestoreService::Entries& entries = service->entries();
171 for (TabRestoreService::Entries::const_iterator it = entries.begin();
173 TabRestoreService::Entry* entry = *it;
176 if (entry->type == TabRestoreService::WINDOW) {
177 TabRestoreService::Window* entry_win = (TabRestoreService::Window*)entry;
178 std::vector<TabRestoreService::Tab>& tabs = entry_win->tabs;
210 std::vector<TabRestoreService::Tab>::const_iterator it;
212 TabRestoreService::Tab tab = *it;
241 } else if (entry->type == TabRestoreService::TAB) {
[all …]
Dhistory_menu_cocoa_controller.mm39 // If this item can be restored using TabRestoreService, do so. Otherwise,
41 TabRestoreService* service = bridge_->profile()->GetTabRestoreService();
Dhistory_menu_bridge_unittest.mm25 class MockTRS : public TabRestoreService {
27 MockTRS(Profile* profile) : TabRestoreService(profile, NULL) {}
28 MOCK_CONST_METHOD0(entries, const TabRestoreService::Entries&());
/external/chromium/chrome/browser/ui/webui/
Dnew_tab_ui.cc91 virtual void TabRestoreServiceChanged(TabRestoreService* service);
95 virtual void TabRestoreServiceDestroyed(TabRestoreService* service);
99 TabRestoreService* tab_restore_service_;
152 TabRestoreService* service) { in TabRestoreServiceChanged()
160 TabRestoreService* service) { in TabRestoreServiceDestroyed()
542 const TabRestoreService::Entries& entries, ListValue* entry_list_value) { in AddRecentlyClosedEntries()
549 for (TabRestoreService::Entries::const_iterator it = entries.begin(); in AddRecentlyClosedEntries()
551 TabRestoreService::Entry* entry = *it; in AddRecentlyClosedEntries()
553 if ((entry->type == TabRestoreService::TAB && in AddRecentlyClosedEntries()
555 *static_cast<TabRestoreService::Tab*>(entry), in AddRecentlyClosedEntries()
[all …]
Dvalue_helper.h16 static bool TabToValue(const TabRestoreService::Tab& tab,
18 static bool WindowToValue(const TabRestoreService::Window& window,
Dvalue_helper.cc11 const TabRestoreService::Tab& tab, in TabToValue()
28 const TabRestoreService::Window& window, in WindowToValue()
Dnew_tab_ui.h53 const TabRestoreService::Entries& entries,
/external/chromium/chrome/browser/
Djumplist_win.h119 virtual void TabRestoreServiceChanged(TabRestoreService* service);
123 virtual void TabRestoreServiceDestroyed(TabRestoreService* service);
138 bool AddTab(const TabRestoreService::Tab* tab,
141 bool AddWindow(const TabRestoreService::Window* window,
Djumplist_win.cc599 TabRestoreService* tab_restore_service = profile->GetTabRestoreService();
616 void JumpList::TabRestoreServiceChanged(TabRestoreService* service) {
637 void JumpList::TabRestoreServiceDestroyed(TabRestoreService* service) {
640 bool JumpList::AddTab(const TabRestoreService::Tab* tab,
663 bool JumpList::AddWindow(const TabRestoreService::Window* window,
736 TabRestoreService* tab_restore_service = profile_->GetTabRestoreService();
737 const TabRestoreService::Entries& entries = tab_restore_service->entries();
738 for (TabRestoreService::Entries::const_iterator it = entries.begin();
740 const TabRestoreService::Entry* entry = *it;
741 if (entry->type == TabRestoreService::TAB) {
[all …]
Dbrowsing_data_remover.cc150 TabRestoreService* tab_service = profile_->GetTabRestoreService(); in Remove()
Dapp_controller_mac.mm321 // As we're shutting down, we need to nuke the TabRestoreService, which
630 // Checks with the TabRestoreService to see if there's anything there to
633 TabRestoreService* service = [self defaultProfile]->GetTabRestoreService();
/external/chromium/chrome/browser/profiles/
Dprofile.h105 class TabRestoreService; variable
478 virtual TabRestoreService* GetTabRestoreService() = 0;
Dprofile_impl.h111 virtual TabRestoreService* GetTabRestoreService();
272 scoped_refptr<TabRestoreService> tab_restore_service_;
Dprofile.cc538 virtual TabRestoreService* GetTabRestoreService() { in GetTabRestoreService()
Dprofile_impl.cc1223 TabRestoreService* ProfileImpl::GetTabRestoreService() { in GetTabRestoreService()
1225 tab_restore_service_ = new TabRestoreService(this); in GetTabRestoreService()
/external/chromium/android/autofill/
Dprofile_android.h107 class TabRestoreService; variable
200 virtual TabRestoreService* GetTabRestoreService() { NOTREACHED(); return NULL; } in GetTabRestoreService()
/external/chromium/chrome/browser/ui/
Dbrowser.h658 virtual void TabRestoreServiceChanged(TabRestoreService* service);
659 virtual void TabRestoreServiceDestroyed(TabRestoreService* service);
1172 TabRestoreService* tab_restore_service_;
Dbrowser.cc313 TabRestoreService* tab_restore_service = profile()->GetTabRestoreService(); in ~Browser()
503 TabRestoreService* service = profile->GetTabRestoreService(); in OpenWindowWithRestoredTabs()
922 TabRestoreService* tab_restore_service = profile()->GetTabRestoreService(); in OnWindowClosing()
1490 TabRestoreService* service = profile_->GetTabRestoreService(); in RestoreTab()
4289 void Browser::TabRestoreServiceChanged(TabRestoreService* service) { in TabRestoreServiceChanged()
4294 void Browser::TabRestoreServiceDestroyed(TabRestoreService* service) { in TabRestoreServiceDestroyed()
/external/chromium/chrome/browser/ui/views/frame/
Dbrowser_view.cc1374 TabRestoreService* trs = browser_->profile()->GetTabRestoreService();
1375 if (trs && trs->entries().front()->type == TabRestoreService::WINDOW)

12