#ifndef APPS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_
#define APPS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "extensions/common/extensions_client.h"
namespace apps {
class ShellExtensionsClient : public extensions::ExtensionsClient {
public:
ShellExtensionsClient();
virtual ~ShellExtensionsClient();
virtual void Initialize() OVERRIDE;
virtual const extensions::PermissionsProvider& GetPermissionsProvider() const
OVERRIDE;
virtual const extensions::PermissionMessageProvider&
GetPermissionMessageProvider() const OVERRIDE;
virtual extensions::FeatureProvider* GetFeatureProviderByName(
const std::string& name) const OVERRIDE;
virtual void FilterHostPermissions(
const extensions::URLPatternSet& hosts,
extensions::URLPatternSet* new_hosts,
std::set<extensions::PermissionMessage>* messages) const OVERRIDE;
virtual void SetScriptingWhitelist(const ScriptingWhitelist& whitelist)
OVERRIDE;
virtual const ScriptingWhitelist& GetScriptingWhitelist() const OVERRIDE;
virtual extensions::URLPatternSet GetPermittedChromeSchemeHosts(
const extensions::Extension* extension,
const extensions::APIPermissionSet& api_permissions) const OVERRIDE;
virtual bool IsScriptableURL(const GURL& url, std::string* error) const
OVERRIDE;
virtual bool IsAPISchemaGenerated(const std::string& name) const OVERRIDE;
virtual base::StringPiece GetAPISchema(const std::string& name) const
OVERRIDE;
virtual void AddExtraFeatureFilters(extensions::SimpleFeature* feature) const
OVERRIDE;
private:
ScriptingWhitelist scripting_whitelist_;
DISALLOW_COPY_AND_ASSIGN(ShellExtensionsClient);
};
}
#endif