Home
last modified time | relevance | path

Searched refs:TabNodePool (Results 1 – 8 of 8) sorted by relevance

/external/chromium_org/chrome/browser/sync/sessions/
Dtab_node_pool.cc18 const size_t TabNodePool::kFreeNodesLowWatermark = 25;
19 const size_t TabNodePool::kFreeNodesHighWatermark = 100;
21 TabNodePool::TabNodePool() in TabNodePool() function in browser_sync::TabNodePool
26 const int TabNodePool::kInvalidTabNodeID = -1;
28 TabNodePool::~TabNodePool() {} in ~TabNodePool()
31 std::string TabNodePool::TabIdToTag( in TabIdToTag()
36 void TabNodePool::AddTabNode(int tab_node_id) { in AddTabNode()
44 void TabNodePool::AssociateTabNode(int tab_node_id, in AssociateTabNode()
62 int TabNodePool::GetFreeTabNode(syncer::SyncChangeList* append_changes) { in GetFreeTabNode()
94 void TabNodePool::FreeTabNode(int tab_node_id, in FreeTabNode()
[all …]
Dtab_node_pool.h41 class TabNodePool {
43 TabNodePool();
44 ~TabNodePool();
160 DISALLOW_COPY_AND_ASSIGN(TabNodePool);
Dsessions_sync_manager.cc61 local_session_header_node_id_(TabNodePool::kInvalidTabNodeID), in SessionsSyncManager()
92 local_session_header_node_id_ = TabNodePool::kInvalidTabNodeID; in MergeDataAndStartSyncing()
215 if (synced_tab->GetSyncId() > TabNodePool::kInvalidTabNodeID && in AssociateWindows()
216 tab_id > TabNodePool::kInvalidTabID) { in AssociateWindows()
311 DCHECK_NE(tab_link->tab_node_id(), TabNodePool::kInvalidTabNodeID); in AssociateTab()
319 TabNodePool::TabIdToTag(current_machine_tag_, in AssociateTab()
421 local_session_header_node_id_ = TabNodePool::kInvalidTabNodeID; in StopSyncing()
457 TabNodePool::TabIdToTag(current_machine_tag_, in GetAllSyncData()
546 TabNodePool::TabIdToTag(current_machine_tag(), in TombstoneTab()
815 SyncData::CreateLocalDelete(TabNodePool::TabIdToTag(tag, *it), in DeleteForeignSessionInternal()
[all …]
Dtab_node_pool_unittest.cc23 TabNodePool pool_;
231 for (size_t i = 1; i <= TabNodePool::kFreeNodesHighWatermark + 1; ++i) { in TEST_F()
250 EXPECT_EQ(TabNodePool::kFreeNodesHighWatermark + 1, pool_.Capacity()); in TEST_F()
257 EXPECT_EQ(TabNodePool::kFreeNodesLowWatermark, pool_.Capacity()); in TEST_F()
Dsessions_sync_manager.h340 TabNodePool local_tab_pool_;
Dsessions_sync_manager_unittest.cc1175 expected_tags.insert(TabNodePool::TabIdToTag(tag, i)); in TEST_F()
1310 EXPECT_EQ(TabNodePool::TabIdToTag( in TEST_F()
1419 EXPECT_EQ(TabNodePool::TabIdToTag(local_tag, tab_node_id), in TEST_F()
1518 EXPECT_EQ(TabNodePool::TabIdToTag( in TEST_F()
1525 EXPECT_EQ(TabNodePool::TabIdToTag( in TEST_F()
1537 EXPECT_EQ(TabNodePool::TabIdToTag( in TEST_F()
1714 EXPECT_EQ(TabNodePool::TabIdToTag(tag1, i), in TEST_F()
/external/chromium_org/chrome/browser/sync/glue/
Dsynced_session_tracker.cc100 if (tab_iter->second.tab_node_id != TabNodePool::kInvalidTabNodeID) in LookupTabNodeIds()
288 session_tag, tab_id, TabNodePool::kInvalidTabNodeID); in PutTabInWindow()
320 DCHECK_NE(TabNodePool::kInvalidTabNodeID, tab_node_id); in GetTab()
333 if (tab_node_id != TabNodePool::kInvalidTabNodeID && in GetTabImpl()
334 tab_id != TabNodePool::kInvalidTabID) { in GetTabImpl()
Dsynced_session_tracker.h169 tab_node_id(TabNodePool::kInvalidTabNodeID) {} in SessionTabWrapper()