#include "extensions/common/extensions_client.h"
#include <string_view>
#include "base/check.h"
#include "base/notreached.h"
#include "extensions/common/extensions_api_provider.h"
#include "extensions/common/features/feature_provider.h"
#include "extensions/common/features/json_feature_provider_source.h"
#include "extensions/common/icons/extension_icon_set.h"
#include "extensions/common/manifest_handler.h"
#include "extensions/common/manifest_handlers/icons_handler.h"
#include "extensions/common/permissions/permissions_info.h"
namespace extensions {
namespace {
ExtensionsClient* g_client = …;
}
ExtensionsClient* ExtensionsClient::Get() { … }
void ExtensionsClient::Set(ExtensionsClient* client) { … }
ExtensionsClient::ExtensionsClient() = default;
ExtensionsClient::~ExtensionsClient() = default;
const Feature::FeatureDelegatedAvailabilityCheckMap&
ExtensionsClient::GetFeatureDelegatedAvailabilityCheckMap() const { … }
void ExtensionsClient::SetFeatureDelegatedAvailabilityCheckMap(
Feature::FeatureDelegatedAvailabilityCheckMap map) { … }
std::unique_ptr<FeatureProvider> ExtensionsClient::CreateFeatureProvider(
const std::string& name) const { … }
std::unique_ptr<JSONFeatureProviderSource>
ExtensionsClient::CreateAPIFeatureSource() const { … }
bool ExtensionsClient::IsAPISchemaGenerated(const std::string& name) const { … }
std::string_view ExtensionsClient::GetAPISchema(const std::string& name) const { … }
void ExtensionsClient::AddAPIProvider(
std::unique_ptr<ExtensionsAPIProvider> provider) { … }
std::set<base::FilePath> ExtensionsClient::GetBrowserImagePaths(
const Extension* extension) { … }
void ExtensionsClient::AddOriginAccessPermissions(
const Extension& extension,
bool is_extension_active,
std::vector<network::mojom::CorsOriginPatternPtr>* origin_patterns) const { … }
std::optional<int> ExtensionsClient::GetExtensionExtendedErrorCode() const { … }
void ExtensionsClient::DoInitialize() { … }
}