#include "chrome/common/extensions/manifest_handlers/app_launch_info.h"
#include <memory>
#include "base/lazy_instance.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/common/extensions/extension_constants.h"
#include "chrome/common/url_constants.h"
#include "components/app_constants/constants.h"
#include "extensions/common/constants.h"
#include "extensions/common/error_utils.h"
#include "extensions/common/manifest_constants.h"
namespace extensions {
keys;
values;
errors;
namespace {
bool ReadLaunchDimension(const extensions::Manifest* manifest,
const char* key,
int* target,
bool is_valid_container,
std::u16string* error) { … }
static base::LazyInstance<AppLaunchInfo>::DestructorAtExit
g_empty_app_launch_info = …;
const AppLaunchInfo& GetAppLaunchInfo(const Extension* extension) { … }
}
AppLaunchInfo::AppLaunchInfo() = default;
AppLaunchInfo::~AppLaunchInfo() = default;
const std::string& AppLaunchInfo::GetLaunchLocalPath(
const Extension* extension) { … }
const GURL& AppLaunchInfo::GetLaunchWebURL(const Extension* extension) { … }
apps::LaunchContainer AppLaunchInfo::GetLaunchContainer(
const Extension* extension) { … }
int AppLaunchInfo::GetLaunchWidth(const Extension* extension) { … }
int AppLaunchInfo::GetLaunchHeight(const Extension* extension) { … }
GURL AppLaunchInfo::GetFullLaunchURL(const Extension* extension) { … }
bool AppLaunchInfo::Parse(Extension* extension, std::u16string* error) { … }
bool AppLaunchInfo::LoadLaunchURL(Extension* extension, std::u16string* error) { … }
bool AppLaunchInfo::LoadLaunchContainer(Extension* extension,
std::u16string* error) { … }
void AppLaunchInfo::OverrideLaunchURL(Extension* extension,
GURL override_url) { … }
AppLaunchManifestHandler::AppLaunchManifestHandler() = default;
AppLaunchManifestHandler::~AppLaunchManifestHandler() = default;
bool AppLaunchManifestHandler::Parse(Extension* extension,
std::u16string* error) { … }
bool AppLaunchManifestHandler::AlwaysParseForType(Manifest::Type type) const { … }
base::span<const char* const> AppLaunchManifestHandler::Keys() const { … }
}