Chromium Code Reviews| Index: chrome/browser/extensions/extension_tab_util.h |
| diff --git a/chrome/browser/extensions/extension_tab_util.h b/chrome/browser/extensions/extension_tab_util.h |
| index 9dbeaef22ad707e20d5440e41e74f1a01929213f..1950df3d86bdaac8841f66050114cc278768b660 100644 |
| --- a/chrome/browser/extensions/extension_tab_util.h |
| +++ b/chrome/browser/extensions/extension_tab_util.h |
| @@ -11,7 +11,9 @@ |
| #include "ui/base/window_open_disposition.h" |
| class Browser; |
| +class ChromeExtensionFunctionDetails; |
| class ChromeUIThreadExtensionFunction; |
| +class ExtensionFunction; |
| class GURL; |
| class Profile; |
| class TabStripModel; |
| @@ -72,11 +74,19 @@ class ExtensionTabUtil { |
| static int GetWindowIdOfTab(const content::WebContents* web_contents); |
| static base::ListValue* CreateTabList(const Browser* browser, |
| const Extension* extension); |
| + |
| + // DEPRECATED: Please consider using ChromeExtensionFunctionDetails. |
|
Ken Rockot(use gerrit already)
2014/09/05 19:55:31
nit: Maybe point out the relevant overload of the
Fady Samuel
2014/09/08 14:54:52
Also, the typical style is TODO(ldap): ...
|
| static Browser* GetBrowserFromWindowID( |
| ChromeUIThreadExtensionFunction* function, |
| int window_id, |
| std::string* error_message); |
| + static Browser* GetBrowserFromWindowID( |
| + ExtensionFunction* function, |
| + const ChromeExtensionFunctionDetails& details, |
| + int window_id, |
| + std::string* error_message); |
| + |
| // Creates a Tab object (see chrome/common/extensions/api/tabs.json) with |
| // information about the state of a browser tab. Depending on the |
| // permissions of the extension, the object may or may not include sensitive |