#ifndef CHROME_RENDERER_EXTENSIONS_RENDERER_PERMISSIONS_POLICY_DELEGATE_H_
#define CHROME_RENDERER_EXTENSIONS_RENDERER_PERMISSIONS_POLICY_DELEGATE_H_
#include "extensions/common/permissions/permissions_data.h"
namespace extensions {
class Dispatcher;
class RendererPermissionsPolicyDelegate
: public PermissionsData::PolicyDelegate {
public:
explicit RendererPermissionsPolicyDelegate(Dispatcher* dispatcher);
virtual ~RendererPermissionsPolicyDelegate();
virtual bool CanExecuteScriptOnPage(const Extension* extension,
const GURL& document_url,
const GURL& top_document_url,
int tab_id,
const UserScript* script,
int process_id,
std::string* error) OVERRIDE;
private:
Dispatcher* dispatcher_;
DISALLOW_COPY_AND_ASSIGN(RendererPermissionsPolicyDelegate);
};
}
#endif