/external/chromium/chrome/browser/sessions/ |
D | tab_restore_service_browsertest.cc | 19 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 …]
|
D | tab_restore_service.cc | 34 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 …]
|
D | session_restore_browsertest.cc | 129 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 …]
|
D | tab_restore_service_observer.h | 8 class TabRestoreService; variable 15 virtual void TabRestoreServiceChanged(TabRestoreService* service) = 0; 19 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) = 0;
|
D | tab_restore_service.h | 37 class TabRestoreService : public BaseSessionService { 120 explicit TabRestoreService(Profile* profile, 175 virtual ~TabRestoreService(); 341 DISALLOW_COPY_AND_ASSIGN(TabRestoreService);
|
/external/chromium/chrome/browser/ui/cocoa/ |
D | history_menu_bridge.h | 27 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
|
D | history_menu_bridge.mm | 160 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 …]
|
D | history_menu_cocoa_controller.mm | 39 // If this item can be restored using TabRestoreService, do so. Otherwise, 41 TabRestoreService* service = bridge_->profile()->GetTabRestoreService();
|
D | history_menu_bridge_unittest.mm | 25 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/ |
D | new_tab_ui.cc | 91 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 …]
|
D | value_helper.h | 16 static bool TabToValue(const TabRestoreService::Tab& tab, 18 static bool WindowToValue(const TabRestoreService::Window& window,
|
D | value_helper.cc | 11 const TabRestoreService::Tab& tab, in TabToValue() 28 const TabRestoreService::Window& window, in WindowToValue()
|
D | new_tab_ui.h | 53 const TabRestoreService::Entries& entries,
|
/external/chromium/chrome/browser/ |
D | jumplist_win.h | 119 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,
|
D | jumplist_win.cc | 599 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 …]
|
D | browsing_data_remover.cc | 150 TabRestoreService* tab_service = profile_->GetTabRestoreService(); in Remove()
|
D | app_controller_mac.mm | 321 // 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/ |
D | profile.h | 105 class TabRestoreService; variable 478 virtual TabRestoreService* GetTabRestoreService() = 0;
|
D | profile_impl.h | 111 virtual TabRestoreService* GetTabRestoreService(); 272 scoped_refptr<TabRestoreService> tab_restore_service_;
|
D | profile.cc | 538 virtual TabRestoreService* GetTabRestoreService() { in GetTabRestoreService()
|
D | profile_impl.cc | 1223 TabRestoreService* ProfileImpl::GetTabRestoreService() { in GetTabRestoreService() 1225 tab_restore_service_ = new TabRestoreService(this); in GetTabRestoreService()
|
/external/chromium/android/autofill/ |
D | profile_android.h | 107 class TabRestoreService; variable 200 virtual TabRestoreService* GetTabRestoreService() { NOTREACHED(); return NULL; } in GetTabRestoreService()
|
/external/chromium/chrome/browser/ui/ |
D | browser.h | 658 virtual void TabRestoreServiceChanged(TabRestoreService* service); 659 virtual void TabRestoreServiceDestroyed(TabRestoreService* service); 1172 TabRestoreService* tab_restore_service_;
|
D | browser.cc | 313 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/ |
D | browser_view.cc | 1374 TabRestoreService* trs = browser_->profile()->GetTabRestoreService(); 1375 if (trs && trs->entries().front()->type == TabRestoreService::WINDOW)
|