#ifndef CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H_
#define CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H_
#include "chrome/browser/extensions/chrome_extension_function.h"
class PluginFinder;
namespace content {
struct WebPluginInfo;
}
namespace extensions {
class ContentSettingsContentSettingClearFunction
: public ChromeSyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("contentSettings.clear", CONTENTSETTINGS_CLEAR)
protected:
virtual ~ContentSettingsContentSettingClearFunction() {}
virtual bool RunImpl() OVERRIDE;
};
class ContentSettingsContentSettingGetFunction
: public ChromeSyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("contentSettings.get", CONTENTSETTINGS_GET)
protected:
virtual ~ContentSettingsContentSettingGetFunction() {}
virtual bool RunImpl() OVERRIDE;
};
class ContentSettingsContentSettingSetFunction
: public ChromeSyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("contentSettings.set", CONTENTSETTINGS_SET)
protected:
virtual ~ContentSettingsContentSettingSetFunction() {}
virtual bool RunImpl() OVERRIDE;
};
class ContentSettingsContentSettingGetResourceIdentifiersFunction
: public ChromeAsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("contentSettings.getResourceIdentifiers",
CONTENTSETTINGS_GETRESOURCEIDENTIFIERS)
protected:
virtual ~ContentSettingsContentSettingGetResourceIdentifiersFunction() {}
virtual bool RunImpl() OVERRIDE;
private:
FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest,
ContentSettingsGetResourceIdentifiers);
void OnGotPlugins(const std::vector<content::WebPluginInfo>& plugins);
};
}
#endif