/external/chromium_org/chrome/browser/sync/glue/ |
synced_session.cc | 24 if (tab.navigations.empty()) 27 for (size_t i = 0; i < tab.navigations.size(); ++i) { 28 if (tab.navigations.at(i).virtual_url().is_valid() && 29 !tab.navigations.at(i).virtual_url().SchemeIs("chrome") && 30 !tab.navigations.at(i).virtual_url().SchemeIsFile()) {
|
session_model_associator_unittest.cc | 102 win.tabs[0]->navigations.push_back(nav); 112 tab.navigations.push_back(nav); 118 tab.navigations.push_back(nav2); 130 tab.navigations.push_back(nav); 229 // Test that we exclude tabs with only chrome:// and file:// schemed navigations 356 session_tab.navigations.push_back( 370 ASSERT_EQ(3u, session_tab.navigations.size()); 372 session_tab.navigations[0].virtual_url()); 374 session_tab.navigations[1].virtual_url()); 376 session_tab.navigations[2].virtual_url()) [all...] |
/external/chromium_org/chrome/browser/ui/ |
browser_tabrestore.h | 28 // SerializedNavigationEntry in |navigations| to select. If |extension_app_id| 32 // |navigations| are from the previous session. |user_agent_override| contains 33 // the string being used as the user agent for all of the tab's navigations when 38 const std::vector<sessions::SerializedNavigationEntry>& navigations, 53 const std::vector<sessions::SerializedNavigationEntry>& navigations,
|
browser_tabrestore.cc | 41 const std::vector<SerializedNavigationEntry>& navigations, 47 GURL restore_url = navigations.at(selected_navigation).virtual_url(); 72 navigations, browser->profile()); 86 const std::vector<SerializedNavigationEntry>& navigations, 96 navigations, 135 const std::vector<SerializedNavigationEntry>& navigations, 142 navigations,
|
browser_tab_restore_service_delegate.cc | 53 const std::vector<sessions::SerializedNavigationEntry>& navigations, 62 return chrome::AddRestoredTab(browser_, navigations, tab_index, 69 const std::vector<sessions::SerializedNavigationEntry>& navigations, 75 return chrome::ReplaceRestoredTab(browser_, navigations, selected_navigation,
|
browser_tab_restore_service_delegate.h | 34 const std::vector<sessions::SerializedNavigationEntry>& navigations, 44 const std::vector<sessions::SerializedNavigationEntry>& navigations,
|
/external/chromium_org/chrome/browser/sessions/ |
session_types.cc | 35 navigations.clear(); 37 navigations.push_back( 52 it = navigations.begin(); it != navigations.end(); ++it) {
|
persistent_tab_restore_service_browsertest.cc | 219 ASSERT_EQ(3U, tab->navigations.size()); 220 EXPECT_TRUE(url1_ == tab->navigations[0].virtual_url()); 221 EXPECT_TRUE(url2_ == tab->navigations[1].virtual_url()); 222 EXPECT_TRUE(url3_ == tab->navigations[2].virtual_url()); 242 ASSERT_EQ(3U, tab->navigations.size()); 243 EXPECT_EQ(url1_, tab->navigations[0].virtual_url()); 244 EXPECT_EQ(url2_, tab->navigations[1].virtual_url()); 245 EXPECT_EQ(url3_, tab->navigations[2].virtual_url()); 253 // navigations. 277 ASSERT_EQ(3U, tab->navigations.size()) [all...] |
session_types_unittest.cc | 120 tab.navigations.resize(100); 132 ASSERT_EQ(5u, tab.navigations.size()); 134 EXPECT_EQ(i, tab.navigations[i].index()); 135 EXPECT_EQ(GURL("referrer"), tab.navigations[i].referrer().url); 136 EXPECT_EQ(string16(ASCIIToUTF16("title")), tab.navigations[i].title()); 138 tab.navigations[i].transition_type()); 140 tab.navigations[i].virtual_url()); 156 tab.navigations.push_back( 171 EXPECT_EQ(tab.navigations[i].virtual_url().spec(), 173 EXPECT_EQ(UTF16ToUTF8(tab.navigations[i].title()) [all...] |
session_restore_android.cc | 25 DCHECK(session_tab.navigations.size() > 0); 32 session_tab.navigations, profile);
|
session_types.h | 36 // of navigations in the current sessions (chrome://newtab is not stored), we 41 static_cast<int>(navigations.size() - 1))); 46 // |navigations|. Note that the sync protocol buffer doesn't 52 // Uses SerializedNavigationEntry::ToSyncData to convert |navigations|. Note 72 // Identifies the index of the current navigation in navigations. For 73 // example, if this is 2 it means the current navigation is navigations[2]. 76 // to SerializedNavigationEntry.index, not the index in navigations. When done 77 // creating though, this is set to the index in navigations. 79 // NOTE 2: this value can be larger than the size of |navigations|, due to 81 // checking must be performed before indexing into |navigations| 97 std::vector<sessions::SerializedNavigationEntry> navigations; member in struct:SessionTab [all...] |
tab_restore_service_delegate.h | 52 const std::vector<sessions::SerializedNavigationEntry>& navigations, 62 const std::vector<sessions::SerializedNavigationEntry>& navigations,
|
session_service_unittest.cc | 201 helper_.AssertNavigationEquals(nav1, tab->navigations[0]); 253 helper_.AssertNavigationEquals(nav1, tab->navigations[0]); 286 ASSERT_EQ(3u, tab->navigations.size()); 287 helper_.AssertNavigationEquals(nav1, tab->navigations[0]); 288 helper_.AssertNavigationEquals(nav2, tab->navigations[1]); 289 helper_.AssertNavigationEquals(nav1, tab->navigations[2]); 329 helper_.AssertNavigationEquals(nav1, tab->navigations[0]); 333 helper_.AssertNavigationEquals(nav2, tab->navigations[0]); 366 helper_.AssertNavigationEquals(nav1, tab->navigations[0]); 399 helper_.AssertNavigationEquals(nav1, tab->navigations[0]) [all...] |
tab_restore_service_helper.cc | 39 GURL url = tab.navigations.at(tab.current_navigation_index).virtual_url(); 111 if (local_tab->navigations.empty()) 137 if (window->tabs[entry_index].navigations.empty()) { 247 tab.navigations, 410 tab->navigations.resize(static_cast<int>(entry_count)); 414 tab->navigations[i] = 456 tab.navigations, 490 web_contents = delegate->AddRestoredTab(tab.navigations, 510 if (tab->navigations.empty()) 515 static_cast<int>(tab->navigations.size()) - 1)) [all...] |
/external/chromium/chrome/browser/sessions/ |
tab_restore_service_browsertest.cc | 137 ASSERT_EQ(3U, tab->navigations.size()); 138 EXPECT_TRUE(url1_ == tab->navigations[0].virtual_url()); 139 EXPECT_TRUE(url2_ == tab->navigations[1].virtual_url()); 140 EXPECT_TRUE(url3_ == tab->navigations[2].virtual_url()); 158 ASSERT_EQ(3U, tab->navigations.size()); 159 EXPECT_EQ(url1_, tab->navigations[0].virtual_url()); 160 EXPECT_EQ(url2_, tab->navigations[1].virtual_url()); 161 EXPECT_EQ(url3_, tab->navigations[2].virtual_url()); 168 // navigations. 192 ASSERT_EQ(3U, tab->navigations.size()) [all...] |
tab_restore_service_delegate.h | 40 const std::vector<TabNavigation>& navigations, 49 const std::vector<TabNavigation>& navigations,
|
tab_restore_service.cc | 156 GURL url = tab.navigations.at(tab.current_navigation_index).virtual_url(); 228 if (local_tab->navigations.empty()) 251 if (window->tabs[entry_index].navigations.empty()) { 353 delegate->AddRestoredTab(tab.navigations, delegate->GetTabCount(), 485 tab->navigations.resize(static_cast<int>(entry_count)); 489 tab->navigations[i].SetFromNavigationEntry(*entry); 595 const std::vector<TabNavigation>& navigations = tab.navigations; local 596 int max_index = static_cast<int>(navigations.size()); 603 if (ShouldTrackEntry(navigations[i])) 688 const std::vector<TabNavigation>& navigations = tab.navigations; local [all...] |
session_service_unittest.cc | 169 helper_.AssertNavigationEquals(nav1, tab->navigations[0]); 221 helper_.AssertNavigationEquals(nav1, tab->navigations[0]); 253 helper_.AssertNavigationEquals(nav1, tab->navigations[0]); 254 helper_.AssertNavigationEquals(nav2, tab->navigations[1]); 255 helper_.AssertNavigationEquals(nav1, tab->navigations[2]); 306 helper_.AssertNavigationEquals(nav1, tab->navigations[0]); 310 helper_.AssertNavigationEquals(nav2, tab->navigations[0]); 340 helper_.AssertNavigationEquals(nav1, tab->navigations[0]); 373 helper_.AssertNavigationEquals(nav1, tab->navigations[0]); 377 helper_.AssertNavigationEquals(nav2, tab->navigations[0]) [all...] |
/external/chromium/chrome/browser/ui/ |
browser_tab_restore_service_delegate.h | 37 const std::vector<TabNavigation>& navigations, 46 const std::vector<TabNavigation>& navigations,
|
browser_tab_restore_service_delegate.cc | 41 const std::vector<TabNavigation>& navigations, 49 return browser_->AddRestoredTab(navigations, tab_index, selected_navigation, 55 const std::vector<TabNavigation>& navigations, 60 browser_->ReplaceRestoredTab(navigations, selected_navigation,
|
/external/chromium/chrome/browser/sync/glue/ |
session_model_associator_unittest.cc | 31 win.tabs[0]->navigations.push_back(nav); 42 tab.navigations.push_back(nav); 49 tab.navigations.push_back(nav2); 100 ASSERT_EQ(12, tab.navigations[0].index()); 101 ASSERT_EQ(GURL("referrer"), tab.navigations[0].referrer()); 102 ASSERT_EQ(string16(ASCIIToUTF16("title")), tab.navigations[0].title()); 103 ASSERT_EQ(PageTransition::TYPED, tab.navigations[0].transition()); 104 ASSERT_EQ(GURL("http://foo/1"), tab.navigations[0].virtual_url());
|
/external/chromium/chrome/browser/ui/webui/ |
value_helper.cc | 13 if (tab.navigations.empty()) 17 tab.navigations.at(tab.current_navigation_index);
|
/external/chromium_org/chrome/browser/sync/test/integration/ |
sessions_helper.cc | 82 if ((*tab_it)->navigations.size() == 0) { 83 DVLOG(1) << "Empty navigations vector"; 87 nav = (*tab_it)->navigations[nav_index]; 163 new_tab->navigations.resize(tab.navigations.size()); 164 std::copy(tab.navigations.begin(), tab.navigations.end(), 165 new_tab->navigations.begin()); 280 for (size_t n = 0; n < client0_tab->navigations.size(); ++n) { 281 if (!NavigationEquals(client0_tab->navigations[n] [all...] |
single_client_sessions_sync_test.cc | 83 it3 = (*it2)->navigations.begin(); 84 it3 != (*it2)->navigations.end(); ++it3) {
|
/external/chromium_org/chrome/browser/ui/webui/ntp/ |
recently_closed_tabs_handler.cc | 30 tab.navigations.at(tab.current_navigation_index); 91 session_tab.navigations = tab_entry->navigations;
|