diff options
author | benwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-28 21:19:23 +0000 |
---|---|---|
committer | benwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-28 21:19:23 +0000 |
commit | 21a40087a57e13cc9b81cb7e8064f74587dfa8a1 (patch) | |
tree | e88d44c64fcaa47a5b45533a4d6c993de770757c /chrome/browser/extensions/api/font_settings/font_settings_api.h | |
parent | 0f75118d4799a7c5421150826eaccd1dfd253f8e (diff) | |
download | chromium_src-21a40087a57e13cc9b81cb7e8064f74587dfa8a1.zip chromium_src-21a40087a57e13cc9b81cb7e8064f74587dfa8a1.tar.gz chromium_src-21a40087a57e13cc9b81cb7e8064f74587dfa8a1.tar.bz2 |
Remove Profile dependency from ExtensionFunction
This instead creates new variants of ExtensionFunction for Chrome APIs,
which need Profile, and uses them for any API that needs to access
Profiles.
TBR=sky@chromium.org
BUG=297942
Review URL: https://codereview.chromium.org/35893010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231406 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/api/font_settings/font_settings_api.h')
-rw-r--r-- | chrome/browser/extensions/api/font_settings/font_settings_api.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/chrome/browser/extensions/api/font_settings/font_settings_api.h b/chrome/browser/extensions/api/font_settings/font_settings_api.h index 1955467..497ee35 100644 --- a/chrome/browser/extensions/api/font_settings/font_settings_api.h +++ b/chrome/browser/extensions/api/font_settings/font_settings_api.h @@ -14,8 +14,8 @@ #include "base/prefs/pref_change_registrar.h" #include "base/prefs/pref_service.h" #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" +#include "chrome/browser/extensions/chrome_extension_function.h" #include "chrome/browser/extensions/event_router.h" -#include "chrome/browser/extensions/extension_function.h" class Profile; @@ -91,7 +91,7 @@ class FontSettingsAPI : public ProfileKeyedAPI { }; // fontSettings.clearFont API function. -class FontSettingsClearFontFunction : public SyncExtensionFunction { +class FontSettingsClearFontFunction : public ChromeSyncExtensionFunction { public: DECLARE_EXTENSION_FUNCTION("fontSettings.clearFont", FONTSETTINGS_CLEARFONT) @@ -105,7 +105,7 @@ class FontSettingsClearFontFunction : public SyncExtensionFunction { }; // fontSettings.getFont API function. -class FontSettingsGetFontFunction : public SyncExtensionFunction { +class FontSettingsGetFontFunction : public ChromeSyncExtensionFunction { public: DECLARE_EXTENSION_FUNCTION("fontSettings.getFont", FONTSETTINGS_GETFONT) @@ -117,7 +117,7 @@ class FontSettingsGetFontFunction : public SyncExtensionFunction { }; // fontSettings.setFont API function. -class FontSettingsSetFontFunction : public SyncExtensionFunction { +class FontSettingsSetFontFunction : public ChromeSyncExtensionFunction { public: DECLARE_EXTENSION_FUNCTION("fontSettings.setFont", FONTSETTINGS_SETFONT) @@ -129,7 +129,7 @@ class FontSettingsSetFontFunction : public SyncExtensionFunction { }; // fontSettings.getFontList API function. -class FontSettingsGetFontListFunction : public AsyncExtensionFunction { +class FontSettingsGetFontListFunction : public ChromeAsyncExtensionFunction { public: DECLARE_EXTENSION_FUNCTION("fontSettings.getFontList", FONTSETTINGS_GETFONTLIST) @@ -146,7 +146,7 @@ class FontSettingsGetFontListFunction : public AsyncExtensionFunction { }; // Base class for extension API functions that clear a browser font pref. -class ClearFontPrefExtensionFunction : public SyncExtensionFunction { +class ClearFontPrefExtensionFunction : public ChromeSyncExtensionFunction { protected: virtual ~ClearFontPrefExtensionFunction() {} @@ -159,7 +159,7 @@ class ClearFontPrefExtensionFunction : public SyncExtensionFunction { }; // Base class for extension API functions that get a browser font pref. -class GetFontPrefExtensionFunction : public SyncExtensionFunction { +class GetFontPrefExtensionFunction : public ChromeSyncExtensionFunction { protected: virtual ~GetFontPrefExtensionFunction() {} @@ -176,7 +176,7 @@ class GetFontPrefExtensionFunction : public SyncExtensionFunction { }; // Base class for extension API functions that set a browser font pref. -class SetFontPrefExtensionFunction : public SyncExtensionFunction { +class SetFontPrefExtensionFunction : public ChromeSyncExtensionFunction { protected: virtual ~SetFontPrefExtensionFunction() {} |