#include "extensions/common/api/scripts_internal/script_serialization.h"
#include <optional>
#include "base/types/optional_util.h"
#include "extensions/common/api/scripts_internal.h"
#include "extensions/common/user_script.h"
#include "extensions/common/utils/content_script_utils.h"
#include "extensions/common/utils/extension_types_utils.h"
namespace extensions::script_serialization {
std::vector<api::scripts_internal::ScriptSource> GetSourcesFromFileNames(
std::vector<std::string> file_names) { … }
api::scripts_internal::SerializedUserScript SerializeUserScript(
const UserScript& user_script) { … }
std::unique_ptr<UserScript> ParseSerializedUserScript(
const api::scripts_internal::SerializedUserScript& serialized_script,
const Extension& extension,
bool allowed_in_incognito,
std::u16string* error_out,
bool* wants_file_access_out,
SerializedUserScriptParseOptions parse_options) { … }
}