#include "extensions/common/permissions/settings_override_permission.h"
#include <memory>
#include "base/strings/utf_string_conversions.h"
#include "extensions/common/permissions/api_permission_set.h"
#include "extensions/strings/grit/extensions_strings.h"
#include "ui/base/l10n/l10n_util.h"
namespace extensions {
SettingsOverrideAPIPermission::SettingsOverrideAPIPermission(
const APIPermissionInfo* permission)
: … { … }
SettingsOverrideAPIPermission::SettingsOverrideAPIPermission(
const APIPermissionInfo* permission,
const std::string& setting_value)
: … { … }
SettingsOverrideAPIPermission::~SettingsOverrideAPIPermission() = default;
PermissionIDSet SettingsOverrideAPIPermission::GetPermissions() const { … }
bool SettingsOverrideAPIPermission::Check(
const APIPermission::CheckParam* param) const { … }
bool SettingsOverrideAPIPermission::Contains(const APIPermission* rhs) const { … }
bool SettingsOverrideAPIPermission::Equal(const APIPermission* rhs) const { … }
bool SettingsOverrideAPIPermission::FromValue(
const base::Value* value,
std::string* ,
std::vector<std::string>* unhandled_permissions) { … }
std::unique_ptr<base::Value> SettingsOverrideAPIPermission::ToValue() const { … }
std::unique_ptr<APIPermission> SettingsOverrideAPIPermission::Clone() const { … }
std::unique_ptr<APIPermission> SettingsOverrideAPIPermission::Diff(
const APIPermission* rhs) const { … }
std::unique_ptr<APIPermission> SettingsOverrideAPIPermission::Union(
const APIPermission* rhs) const { … }
std::unique_ptr<APIPermission> SettingsOverrideAPIPermission::Intersect(
const APIPermission* rhs) const { … }
}