Lines Matching refs:sidebar_host
69 SidebarContainer* sidebar_host = GetSidebarContainerFor(tab, content_id); in GetSidebarTabContents() local
70 if (!sidebar_host) in GetSidebarTabContents()
72 return sidebar_host->sidebar_contents(); in GetSidebarTabContents()
270 TabContents* tab, SidebarContainer* sidebar_host) { in RegisterSidebarContainerFor() argument
271 DCHECK(!GetSidebarContainerFor(tab, sidebar_host->content_id())); in RegisterSidebarContainerFor()
280 BindSidebarHost(tab, sidebar_host); in RegisterSidebarContainerFor()
306 SidebarContainer* sidebar_host) { in BindSidebarHost() argument
307 const std::string& content_id = sidebar_host->content_id(); in BindSidebarHost()
310 DCHECK(sidebar_host_to_tab_.find(sidebar_host) == in BindSidebarHost()
314 sidebar_host; in BindSidebarHost()
315 sidebar_host_to_tab_[sidebar_host] = tab; in BindSidebarHost()
319 SidebarContainer* sidebar_host) { in UnbindSidebarHost() argument
320 const std::string& content_id = sidebar_host->content_id(); in UnbindSidebarHost()
322 DCHECK(GetSidebarContainerFor(tab, content_id) == sidebar_host); in UnbindSidebarHost()
323 DCHECK(sidebar_host_to_tab_.find(sidebar_host)->second == tab); in UnbindSidebarHost()
329 sidebar_host_to_tab_.erase(sidebar_host); in UnbindSidebarHost()