Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1808)

Unified Diff: chrome/browser/extensions/extension_tab_util.h

Issue 545973002: Cleaning up capture_web_contents_function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698