Home | History | Annotate | Download | only in tabs

Lines Matching refs:browser

5 #include "chrome/browser/tabs/tab_finder.h"
9 #include "chrome/browser/history/history.h"
10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/ui/browser.h"
12 #include "chrome/browser/ui/browser_list.h"
14 #include "content/browser/tab_contents/navigation_entry.h"
15 #include "content/browser/tab_contents/tab_contents.h"
16 #include "content/browser/tab_contents/tab_contents_observer.h"
75 TabContents* TabFinder::FindTab(Browser* browser,
77 Browser** existing_browser) {
78 if (browser->profile()->IsOffTheRecord())
83 TabContents* selected_tab = browser->GetSelectedTabContents();
87 // See if the current browser has a tab matching the specified url.
88 TabContents* tab_in_browser = FindTabInBrowser(browser, url);
90 *existing_browser = browser;
114 // The tab was added to a browser. Query for its state now.
161 TabContents* TabFinder::FindTabInBrowser(Browser* browser, const GURL& url) {
162 if (browser->type() != Browser::TYPE_NORMAL)
165 for (int i = 0; i < browser->tab_count(); ++i) {
166 if (TabMatchesURL(browser->GetTabContentsAt(i), url))
167 return browser->GetTabContentsAt(i);
185 void TabFinder::TrackBrowser(Browser* browser) {
186 for (int i = 0; i < browser->tab_count(); ++i)
187 FetchRedirectStart(browser->GetTabContentsAt(i));