#include "extensions/common/manifest_handlers/file_handler_info.h"
#include <stddef.h>
#include <memory>
#include "base/feature_list.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "extensions/common/error_utils.h"
#include "extensions/common/extension_features.h"
#include "extensions/common/manifest.h"
#include "extensions/common/manifest_constants.h"
#include "extensions/common/manifest_handlers/web_file_handlers_info.h"
namespace extensions {
keys;
errors;
namespace {
const int kMaxTypeAndExtensionHandlers = …;
const char kNotRecognized[] = …;
bool IsSupportedVerb(const std::string& verb) { … }
bool LoadFileHandler(const std::string& handler_id,
const base::Value::Dict& handler_info,
FileHandlersInfo* file_handlers,
std::u16string* error,
std::vector<InstallWarning>* install_warnings) { … }
}
FileHandlerMatch::FileHandlerMatch() = default;
FileHandlerMatch::~FileHandlerMatch() = default;
FileHandlers::FileHandlers() = default;
FileHandlers::~FileHandlers() = default;
const FileHandlersInfo* FileHandlers::GetFileHandlers(
const Extension* extension) { … }
FileHandlersParser::FileHandlersParser() = default;
FileHandlersParser::~FileHandlersParser() = default;
bool FileHandlersParser::Validate(const Extension* extension,
std::string* error,
std::vector<InstallWarning>* warnings) const { … }
bool FileHandlersParser::Parse(Extension* extension, std::u16string* error) { … }
base::span<const char* const> FileHandlersParser::Keys() const { … }
}