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

Unified Diff: chrome/browser/extensions/api/tabs/tabs_api.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/api/tabs/tabs_api.h
diff --git a/chrome/browser/extensions/api/tabs/tabs_api.h b/chrome/browser/extensions/api/tabs/tabs_api.h
index 270da0e7b349535b9ea0f0e1958e61c06c97f341..11b905b0cc5f08ef95a7a0c68498ce73cde0462b 100644
--- a/chrome/browser/extensions/api/tabs/tabs_api.h
+++ b/chrome/browser/extensions/api/tabs/tabs_api.h
@@ -196,15 +196,17 @@ class TabsDetectLanguageFunction : public ChromeAsyncExtensionFunction,
DECLARE_EXTENSION_FUNCTION("tabs.detectLanguage", TABS_DETECTLANGUAGE)
};
class TabsCaptureVisibleTabFunction
- : public extensions::CaptureWebContentsFunction<
- ChromeAsyncExtensionFunction> {
+ : public extensions::CaptureWebContentsFunction {
public:
+ TabsCaptureVisibleTabFunction();
static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
protected:
virtual ~TabsCaptureVisibleTabFunction() {}
private:
+ const ChromeExtensionFunctionDetails chrome_details_;
+
// extensions::CaptureWebContentsFunction:
virtual bool IsScreenshotEnabled() OVERRIDE;
virtual content::WebContents* GetWebContentsForID(int id) OVERRIDE;
« no previous file with comments | « no previous file | chrome/browser/extensions/api/tabs/tabs_api.cc » ('j') | chrome/browser/extensions/extension_tab_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698