HomeSort by relevance Sort by last modified time
    Searched full:tab_node_id (Results 1 - 11 of 11) sorted by null

  /external/chromium_org/chrome/browser/sync/sessions/
tab_node_pool.cc 32 const std::string machine_tag, int tab_node_id) {
33 return base::StringPrintf("%s %d", machine_tag.c_str(), tab_node_id);
36 void TabNodePool::AddTabNode(int tab_node_id) {
37 DCHECK_GT(tab_node_id, kInvalidTabNodeID);
38 DCHECK(nodeid_tabid_map_.find(tab_node_id) == nodeid_tabid_map_.end());
39 unassociated_nodes_.insert(tab_node_id);
40 if (max_used_tab_node_id_ < tab_node_id)
41 max_used_tab_node_id_ = tab_node_id;
44 void TabNodePool::AssociateTabNode(int tab_node_id,
46 DCHECK_GT(tab_node_id, kInvalidTabNodeID)
67 int tab_node_id = ++max_used_tab_node_id_; local
    [all...]
tab_node_pool.h 27 // - a tab_node_id: the id for a particular sync tab node. This is used
29 // tab_tag = StringPrintf("%s_%ui", local_session_tag, tab_node_id);
58 // Build a sync tag from tab_node_id.
60 int tab_node_id);
62 // Returns the tab_node_id for the next free tab node. If none are available,
75 // Removes association for |tab_node_id| and returns it to the free node pool.
81 void FreeTabNode(int tab_node_id, syncer::SyncChangeList* change_output);
83 // Associates |tab_node_id| with |tab_id|. |tab_node_id| should either be
84 // unassociated or free. If |tab_node_id| is free, |tab_node_id| is remove
    [all...]
sessions_sync_manager.cc 264 local_tab_pool_.FreeTabNode(tab_iter->second->tab_node_id(),
277 int tab_node_id = tab->GetSyncId(); local
280 if (!local_tab_pool_.IsUnassociatedTabNode(tab_node_id)) {
281 tab_node_id = local_tab_pool_.GetFreeTabNode(change_output);
282 tab->SetSyncId(tab_node_id);
284 local_tab_pool_.AssociateTabNode(tab_node_id, tab_id);
285 tab_link = new TabLink(tab_node_id, tab);
295 DCHECK_NE(tab_link->tab_node_id(), TabNodePool::kInvalidTabNodeID);
304 tab_link->tab_node_id()),
421 specifics->set_tab_node_id(tab_map_iter->second->tab_node_id());
    [all...]
sessions_sync_manager.h 158 // Keep all the links to local tab data in one place. A tab_node_id and tab
159 // must be passed at creation. The tab_node_id is not mutable, although
163 TabLink(int tab_node_id, const SyncedTabDelegate* tab)
164 : tab_node_id_(tab_node_id),
170 int tab_node_id() const { return tab_node_id_; } function in class:browser_sync::SessionsSyncManager::TabLink
sessions_sync_manager_unittest.cc 195 iter->tab_node_id(),
785 EXPECT_EQ(2, tab_map.find(t2_tab_id)->second->tab_node_id());
786 EXPECT_EQ(1, tab_map.find(kNewTabId)->second->tab_node_id());
788 EXPECT_EQ(0, tab_map.find(t0_tab_id)->second->tab_node_id());
1196 int tab_node_id = out[1].sync_data().GetSpecifics().session().tab_node_id(); local
1292 int tab_node_id = manager()->local_tab_pool_.GetFreeTabNode(&changes); local
    [all...]
tab_node_pool_unittest.cc 221 EXPECT_EQ(0, specifics.tab_node_id());
  /external/chromium_org/chrome/browser/sync/glue/
synced_session_tracker.h 111 // |tab_node_id| must be a valid node id for the node backing this tab.
114 int tab_node_id);
124 // possible we just haven't updated the tab_node_id for a tab yet, so the
160 // SessionTab for sync purposes, such as |tab_node_id|.
169 tab_node_id(TabNodePool::kInvalidTabNodeID) {}
170 SessionTabWrapper(SessionTab* tab_ptr, OwnedState owned, int tab_node_id)
173 tab_node_id(tab_node_id) {}
185 int tab_node_id; member in struct:browser_sync::SyncedSessionTracker::SessionTabWrapper
208 // Implementation for GetTab(...) above, permits invalid tab_node_id
    [all...]
synced_session_tracker.cc 100 if (tab_iter->second.tab_node_id != TabNodePool::kInvalidTabNodeID)
101 tab_node_ids->insert(tab_iter->second.tab_node_id);
307 int tab_node_id) {
308 DCHECK_NE(TabNodePool::kInvalidTabNodeID, tab_node_id);
309 return GetTabImpl(session_tag, tab_id, tab_node_id);
315 int tab_node_id) {
321 if (tab_node_id != TabNodePool::kInvalidTabNodeID &&
334 // TabID1 with tab_node_id changing from NodeIDA to NodeIDB, and TabID2
335 // with tab_node_id changing from NodeIDB to NodeIDA.
342 // In both cases, we update the tab_node_id
    [all...]
  /external/chromium_org/sync/protocol/
session_specifics.proto 26 optional int32 tab_node_id = 4 [default = -1];
proto_value_conversions.cc 746 SET_INT32(tab_node_id);
    [all...]
  /external/chromium_org/chrome/browser/ui/toolbar/
recent_tabs_builder_test_helper.cc 200 tab_base->tab_node_id(),

Completed in 3575 milliseconds