#include "extensions/common/api/scripts_internal.h"
#include <memory>
#include <optional>
#include <ostream>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include "base/check.h"
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "tools/json_schema_compiler/util.h"
#include <string_view>
#include "extensions/common/api/extension_types.h"
UTF8ToUTF16;
namespace extensions {
namespace api {
namespace scripts_internal {
const char* ToString(Source enum_param) { … }
Source ParseSource(std::string_view enum_string) { … }
std::u16string GetSourceParseError(std::string_view enum_string) { … }
ScriptSource::ScriptSource()
{ … }
ScriptSource::~ScriptSource() = default;
ScriptSource::ScriptSource(ScriptSource&& rhs) noexcept = default;
ScriptSource& ScriptSource::operator=(ScriptSource&& rhs) noexcept = default;
ScriptSource ScriptSource::Clone() const { … }
bool ScriptSource::Populate(
const base::Value::Dict& dict, ScriptSource& out) { … }
bool ScriptSource::Populate(
const base::Value& value, ScriptSource& out) { … }
std::optional<ScriptSource> ScriptSource::FromValue(const base::Value::Dict& value) { … }
std::optional<ScriptSource> ScriptSource::FromValue(const base::Value& value) { … }
base::Value::Dict ScriptSource::ToValue() const { … }
SerializedUserScript::SerializedUserScript()
: … { … }
SerializedUserScript::~SerializedUserScript() = default;
SerializedUserScript::SerializedUserScript(SerializedUserScript&& rhs) noexcept = default;
SerializedUserScript& SerializedUserScript::operator=(SerializedUserScript&& rhs) noexcept = default;
SerializedUserScript SerializedUserScript::Clone() const { … }
bool SerializedUserScript::Populate(
const base::Value::Dict& dict, SerializedUserScript& out) { … }
bool SerializedUserScript::Populate(
const base::Value& value, SerializedUserScript& out) { … }
std::optional<SerializedUserScript> SerializedUserScript::FromValue(const base::Value::Dict& value) { … }
std::optional<SerializedUserScript> SerializedUserScript::FromValue(const base::Value& value) { … }
base::Value::Dict SerializedUserScript::ToValue() const { … }
}
}
}