#include "extensions/common/api/content_scripts.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 "tools/json_schema_compiler/manifest_parse_util.h"
#include <string_view>
#include "base/types/expected.h"
#include "extensions/common/api/extension_types.h"
UTF8ToUTF16;
namespace extensions {
namespace api {
namespace content_scripts {
ContentScript::ContentScript()
: … { … }
ContentScript::~ContentScript() = default;
ContentScript::ContentScript(ContentScript&& rhs) noexcept = default;
ContentScript& ContentScript::operator=(ContentScript&& rhs) noexcept = default;
constexpr char ContentScript::kMatches[];
constexpr char ContentScript::kExcludeMatches[];
constexpr char ContentScript::kCss[];
constexpr char ContentScript::kJs[];
constexpr char ContentScript::kAllFrames[];
constexpr char ContentScript::kMatchOriginAsFallback[];
constexpr char ContentScript::kMatchAboutBlank[];
constexpr char ContentScript::kIncludeGlobs[];
constexpr char ContentScript::kExcludeGlobs[];
constexpr char ContentScript::kRunAt[];
constexpr char ContentScript::kWorld[];
ContentScript ContentScript::Clone() const { … }
bool ContentScript::Populate(
const base::Value::Dict& dict, ContentScript& out, std::u16string& error) { … }
bool ContentScript::Populate(
const base::Value& value, ContentScript& out, std::u16string& error) { … }
base::expected<ContentScript, std::u16string> ContentScript::FromValue(const base::Value::Dict& value) { … }
base::expected<ContentScript, std::u16string> ContentScript::FromValue(const base::Value& value) { … }
base::Value::Dict ContentScript::ToValue() const { … }
bool ContentScript::ParseFromDictionary(
const base::Value::Dict& root_dict, std::string_view key, ContentScript& out, std::u16string& error, std::vector<std::string_view>& error_path_reversed) { … }
ManifestKeys::ManifestKeys()
{ … }
ManifestKeys::~ManifestKeys() = default;
ManifestKeys::ManifestKeys(ManifestKeys&& rhs) noexcept = default;
ManifestKeys& ManifestKeys::operator=(ManifestKeys&& rhs) noexcept = default;
constexpr char ManifestKeys::kContentScripts[];
bool ManifestKeys::ParseFromDictionary(
const base::Value::Dict& root_dict, ManifestKeys& out, std::u16string& error) { … }
}
}
}