| Index: chrome/browser/ui/browser_list.h
|
| diff --git a/chrome/browser/ui/browser_list.h b/chrome/browser/ui/browser_list.h
|
| index b926083269d004a595932d6be214a42a11267370..447f6cb907cb255bfbb90baad7af1f46d35c752a 100644
|
| --- a/chrome/browser/ui/browser_list.h
|
| +++ b/chrome/browser/ui/browser_list.h
|
| @@ -13,6 +13,8 @@
|
| #include "chrome/browser/ui/browser.h"
|
| #include "ui/gfx/native_widget_types.h"
|
|
|
| +class TabContents;
|
| +
|
| // Stores a list of all Browser objects.
|
| class BrowserList {
|
| public:
|
| @@ -98,6 +100,10 @@ class BrowserList {
|
| // Find the browser represented by |window| or NULL if not found.
|
| static Browser* FindBrowserWithWindow(gfx::NativeWindow window);
|
|
|
| + // Find the browser containing |tab_contents| or NULL if none is found.
|
| + // |tab_contents| must not be NULL.
|
| + static Browser* FindBrowserWithTabContents(TabContents* tab_contents);
|
| +
|
| // Checks if the browser can be automatically restarted to install upgrades
|
| // The browser can be automatically restarted when:
|
| // 1. It's in the background mode (no visible windows).
|
|
|