Chromium Code Reviews| 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..59fbb846bc362a4d702f4f32fa7f323c725c0969 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,9 @@ 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. |
| + static Browser* FindBrowserWithTabContents(TabContents* tab_contents); |
|
James Hawkins
2011/10/12 17:34:18
|tab_contents| must not be NULL.
sail
2011/10/12 17:54:12
Done.
|
| + |
| // 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). |