summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_tab_util.h
diff options
context:
space:
mode:
authornileshagrawal@chromium.org <nileshagrawal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-18 20:01:21 +0000
committernileshagrawal@chromium.org <nileshagrawal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-18 20:01:21 +0000
commite9570fdf147628f87307848ef8e8846f2e19ab5d (patch)
treec2a8e83afdcf36009c3c3762b9e083d3d6e13971 /chrome/browser/extensions/extension_tab_util.h
parentcf07c18ae98c2fe1260254528bf7eded17618cec (diff)
downloadchromium_src-e9570fdf147628f87307848ef8e8846f2e19ab5d.zip
chromium_src-e9570fdf147628f87307848ef8e8846f2e19ab5d.tar.gz
chromium_src-e9570fdf147628f87307848ef8e8846f2e19ab5d.tar.bz2
Create a helper method to get ExtensionWindowController from WebContents.
This removes TabHelper dependency on Browser. BUG=117407 TEST= Review URL: https://chromiumcodereview.appspot.com/10785026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147300 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_tab_util.h')
-rw-r--r--chrome/browser/extensions/extension_tab_util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_tab_util.h b/chrome/browser/extensions/extension_tab_util.h
index f51b244..ec87b26 100644
--- a/chrome/browser/extensions/extension_tab_util.h
+++ b/chrome/browser/extensions/extension_tab_util.h
@@ -27,6 +27,7 @@ class WebContents;
namespace extensions {
class Extension;
+class WindowController;
}
namespace gfx {
@@ -92,6 +93,9 @@ class ExtensionTabUtil {
// Executes the specified callback for all tabs in all browser windows.
static void ForEachTab(
const base::Callback<void(content::WebContents*)>& callback);
+
+ static extensions::WindowController* GetWindowControllerOfTab(
+ const content::WebContents* web_contents);
};
#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_UTIL_H__