#ifndef EXTENSIONS_COMMON_PERMISSIONS_MEDIA_GALLERIES_PERMISSION_H_
#define EXTENSIONS_COMMON_PERMISSIONS_MEDIA_GALLERIES_PERMISSION_H_
#include "base/basictypes.h"
#include "extensions/common/permissions/api_permission.h"
#include "extensions/common/permissions/media_galleries_permission_data.h"
#include "extensions/common/permissions/set_disjunction_permission.h"
namespace extensions {
class MediaGalleriesPermission
: public SetDisjunctionPermission<MediaGalleriesPermissionData,
MediaGalleriesPermission> {
public:
struct CheckParam : public APIPermission::CheckParam {
explicit CheckParam(const std::string& permission)
: permission(permission) {}
const std::string permission;
};
explicit MediaGalleriesPermission(const APIPermissionInfo* info);
virtual ~MediaGalleriesPermission();
virtual bool FromValue(
const base::Value* value,
std::string* error,
std::vector<std::string>* unhandled_permissions) OVERRIDE;
virtual PermissionMessages GetMessages() const OVERRIDE;
static const char kAllAutoDetectedPermission[];
static const char kScanPermission[];
static const char kReadPermission[];
static const char kCopyToPermission[];
static const char kDeletePermission[];
};
}
#endif