| Index: chrome/browser/ui/browser_finder.h
|
| ===================================================================
|
| --- chrome/browser/ui/browser_finder.h (revision 150796)
|
| +++ chrome/browser/ui/browser_finder.h (working copy)
|
| @@ -52,6 +52,14 @@
|
| // |web_contents| must not be NULL.
|
| Browser* FindBrowserWithWebContents(const content::WebContents* web_contents);
|
|
|
| +// Returns the Browser which contains the tab with the given
|
| +// NavigationController, also filling in |index| (if valid) with the tab's index
|
| +// in the tab strip. Returns NULL if not found. This call is O(N) in the
|
| +// number of tabs.
|
| +Browser* FindBrowserForController(
|
| + const content::NavigationController* controller,
|
| + int* index);
|
| +
|
| // Identical in behavior to BrowserList::GetLastActive(), except that the most
|
| // recently open browser owned by |profile| is returned. If none exist, returns
|
| // NULL. WARNING: see warnings in BrowserList::GetLastActive().
|
|
|