#include "chrome/common/apps/platform_apps/media_galleries_permission.h"
#include <stddef.h>
#include <set>
#include <string>
#include "base/notreached.h"
#include "base/strings/utf_string_conversions.h"
#include "extensions/common/permissions/permissions_info.h"
#include "ui/base/l10n/l10n_util.h"
APIPermissionID;
namespace chrome_apps {
namespace {
bool IsValidPermissionSet(bool has_read,
bool has_copy_to,
bool has_delete,
std::string* error) { … }
}
const char MediaGalleriesPermission::kAllAutoDetectedPermission[] = …;
const char MediaGalleriesPermission::kReadPermission[] = …;
const char MediaGalleriesPermission::kCopyToPermission[] = …;
const char MediaGalleriesPermission::kDeletePermission[] = …;
MediaGalleriesPermission::MediaGalleriesPermission(
const extensions::APIPermissionInfo* info)
: … { … }
MediaGalleriesPermission::~MediaGalleriesPermission() { … }
bool MediaGalleriesPermission::FromValue(
const base::Value* value,
std::string* error,
std::vector<std::string>* unhandled_permissions) { … }
extensions::PermissionIDSet MediaGalleriesPermission::GetPermissions() const { … }
}