#include "extensions/common/manifest_handlers/kiosk_mode_info.h"
#include <memory>
#include <set>
#include <string>
#include <utility>
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "base/version.h"
#include "extensions/common/api/extensions_manifest_types.h"
#include "extensions/common/error_utils.h"
#include "extensions/common/features/behavior_feature.h"
#include "extensions/common/features/feature.h"
#include "extensions/common/features/feature_provider.h"
#include "extensions/common/manifest_constants.h"
namespace extensions {
keys;
KioskSecondaryAppsType;
namespace {
bool AllowSecondaryAppEnabledOnLaunch(const Extension* extension) { … }
}
SecondaryKioskAppInfo::SecondaryKioskAppInfo(
const extensions::ExtensionId& id,
const std::optional<bool>& enabled_on_launch)
: … { … }
SecondaryKioskAppInfo::SecondaryKioskAppInfo(
const SecondaryKioskAppInfo& other) = default;
SecondaryKioskAppInfo::~SecondaryKioskAppInfo() = default;
KioskModeInfo::KioskModeInfo(
KioskStatus kiosk_status,
std::vector<SecondaryKioskAppInfo>&& secondary_apps,
const std::string& required_platform_version,
bool always_update)
: … { … }
KioskModeInfo::~KioskModeInfo() { … }
KioskModeInfo* KioskModeInfo::Get(const Extension* extension) { … }
bool KioskModeInfo::IsKioskEnabled(const Extension* extension) { … }
bool KioskModeInfo::IsKioskOnly(const Extension* extension) { … }
bool KioskModeInfo::HasSecondaryApps(const Extension* extension) { … }
bool KioskModeInfo::IsValidPlatformVersion(const std::string& version_string) { … }
KioskModeHandler::KioskModeHandler() { … }
KioskModeHandler::~KioskModeHandler() { … }
bool KioskModeHandler::Parse(Extension* extension, std::u16string* error) { … }
base::span<const char* const> KioskModeHandler::Keys() const { … }
}