#include "extensions/common/api/declarative_net_request.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 declarative_net_request {
const int GUARANTEED_MINIMUM_STATIC_RULES = …;
const int MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES = …;
const int MAX_NUMBER_OF_DYNAMIC_RULES = …;
const int MAX_NUMBER_OF_UNSAFE_DYNAMIC_RULES = …;
const int MAX_NUMBER_OF_SESSION_RULES = …;
const int MAX_NUMBER_OF_UNSAFE_SESSION_RULES = …;
const int GETMATCHEDRULES_QUOTA_INTERVAL = …;
const int MAX_GETMATCHEDRULES_CALLS_PER_INTERVAL = …;
const int MAX_NUMBER_OF_REGEX_RULES = …;
const int MAX_NUMBER_OF_STATIC_RULESETS = …;
const int MAX_NUMBER_OF_ENABLED_STATIC_RULESETS = …;
const char DYNAMIC_RULESET_ID[] = …;
const char SESSION_RULESET_ID[] = …;
const char* ToString(ResourceType enum_param) { … }
ResourceType ParseResourceType(std::string_view enum_string) { … }
std::u16string GetResourceTypeParseError(std::string_view enum_string) { … }
const char* ToString(RequestMethod enum_param) { … }
RequestMethod ParseRequestMethod(std::string_view enum_string) { … }
std::u16string GetRequestMethodParseError(std::string_view enum_string) { … }
const char* ToString(DomainType enum_param) { … }
DomainType ParseDomainType(std::string_view enum_string) { … }
std::u16string GetDomainTypeParseError(std::string_view enum_string) { … }
const char* ToString(HeaderOperation enum_param) { … }
HeaderOperation ParseHeaderOperation(std::string_view enum_string) { … }
std::u16string GetHeaderOperationParseError(std::string_view enum_string) { … }
const char* ToString(RuleActionType enum_param) { … }
RuleActionType ParseRuleActionType(std::string_view enum_string) { … }
std::u16string GetRuleActionTypeParseError(std::string_view enum_string) { … }
const char* ToString(UnsupportedRegexReason enum_param) { … }
UnsupportedRegexReason ParseUnsupportedRegexReason(std::string_view enum_string) { … }
std::u16string GetUnsupportedRegexReasonParseError(std::string_view enum_string) { … }
Ruleset::Ruleset()
: … { … }
Ruleset::~Ruleset() = default;
Ruleset::Ruleset(Ruleset&& rhs) noexcept = default;
Ruleset& Ruleset::operator=(Ruleset&& rhs) noexcept = default;
Ruleset Ruleset::Clone() const { … }
bool Ruleset::Populate(
const base::Value::Dict& dict, Ruleset& out, std::u16string& error) { … }
bool Ruleset::Populate(
const base::Value& value, Ruleset& out, std::u16string& error) { … }
base::expected<Ruleset, std::u16string> Ruleset::FromValue(const base::Value::Dict& value) { … }
base::expected<Ruleset, std::u16string> Ruleset::FromValue(const base::Value& value) { … }
base::Value::Dict Ruleset::ToValue() const { … }
QueryKeyValue::QueryKeyValue()
{ … }
QueryKeyValue::~QueryKeyValue() = default;
QueryKeyValue::QueryKeyValue(QueryKeyValue&& rhs) noexcept = default;
QueryKeyValue& QueryKeyValue::operator=(QueryKeyValue&& rhs) noexcept = default;
QueryKeyValue QueryKeyValue::Clone() const { … }
bool QueryKeyValue::Populate(
const base::Value::Dict& dict, QueryKeyValue& out, std::u16string& error) { … }
bool QueryKeyValue::Populate(
const base::Value& value, QueryKeyValue& out, std::u16string& error) { … }
base::expected<QueryKeyValue, std::u16string> QueryKeyValue::FromValue(const base::Value::Dict& value) { … }
base::expected<QueryKeyValue, std::u16string> QueryKeyValue::FromValue(const base::Value& value) { … }
base::Value::Dict QueryKeyValue::ToValue() const { … }
QueryTransform::QueryTransform()
{ … }
QueryTransform::~QueryTransform() = default;
QueryTransform::QueryTransform(QueryTransform&& rhs) noexcept = default;
QueryTransform& QueryTransform::operator=(QueryTransform&& rhs) noexcept = default;
QueryTransform QueryTransform::Clone() const { … }
bool QueryTransform::Populate(
const base::Value::Dict& dict, QueryTransform& out, std::u16string& error) { … }
bool QueryTransform::Populate(
const base::Value& value, QueryTransform& out, std::u16string& error) { … }
base::expected<QueryTransform, std::u16string> QueryTransform::FromValue(const base::Value::Dict& value) { … }
base::expected<QueryTransform, std::u16string> QueryTransform::FromValue(const base::Value& value) { … }
base::Value::Dict QueryTransform::ToValue() const { … }
URLTransform::URLTransform()
{ … }
URLTransform::~URLTransform() = default;
URLTransform::URLTransform(URLTransform&& rhs) noexcept = default;
URLTransform& URLTransform::operator=(URLTransform&& rhs) noexcept = default;
URLTransform URLTransform::Clone() const { … }
bool URLTransform::Populate(
const base::Value::Dict& dict, URLTransform& out, std::u16string& error) { … }
bool URLTransform::Populate(
const base::Value& value, URLTransform& out, std::u16string& error) { … }
base::expected<URLTransform, std::u16string> URLTransform::FromValue(const base::Value::Dict& value) { … }
base::expected<URLTransform, std::u16string> URLTransform::FromValue(const base::Value& value) { … }
base::Value::Dict URLTransform::ToValue() const { … }
Redirect::Redirect()
{ … }
Redirect::~Redirect() = default;
Redirect::Redirect(Redirect&& rhs) noexcept = default;
Redirect& Redirect::operator=(Redirect&& rhs) noexcept = default;
Redirect Redirect::Clone() const { … }
bool Redirect::Populate(
const base::Value::Dict& dict, Redirect& out, std::u16string& error) { … }
bool Redirect::Populate(
const base::Value& value, Redirect& out, std::u16string& error) { … }
base::expected<Redirect, std::u16string> Redirect::FromValue(const base::Value::Dict& value) { … }
base::expected<Redirect, std::u16string> Redirect::FromValue(const base::Value& value) { … }
base::Value::Dict Redirect::ToValue() const { … }
HeaderInfo::HeaderInfo()
{ … }
HeaderInfo::~HeaderInfo() = default;
HeaderInfo::HeaderInfo(HeaderInfo&& rhs) noexcept = default;
HeaderInfo& HeaderInfo::operator=(HeaderInfo&& rhs) noexcept = default;
HeaderInfo HeaderInfo::Clone() const { … }
bool HeaderInfo::Populate(
const base::Value::Dict& dict, HeaderInfo& out, std::u16string& error) { … }
bool HeaderInfo::Populate(
const base::Value& value, HeaderInfo& out, std::u16string& error) { … }
base::expected<HeaderInfo, std::u16string> HeaderInfo::FromValue(const base::Value::Dict& value) { … }
base::expected<HeaderInfo, std::u16string> HeaderInfo::FromValue(const base::Value& value) { … }
base::Value::Dict HeaderInfo::ToValue() const { … }
RuleCondition::RuleCondition()
: … { … }
RuleCondition::~RuleCondition() = default;
RuleCondition::RuleCondition(RuleCondition&& rhs) noexcept = default;
RuleCondition& RuleCondition::operator=(RuleCondition&& rhs) noexcept = default;
RuleCondition RuleCondition::Clone() const { … }
bool RuleCondition::Populate(
const base::Value::Dict& dict, RuleCondition& out, std::u16string& error) { … }
bool RuleCondition::Populate(
const base::Value& value, RuleCondition& out, std::u16string& error) { … }
base::expected<RuleCondition, std::u16string> RuleCondition::FromValue(const base::Value::Dict& value) { … }
base::expected<RuleCondition, std::u16string> RuleCondition::FromValue(const base::Value& value) { … }
base::Value::Dict RuleCondition::ToValue() const { … }
HeaderRegexOptions::HeaderRegexOptions()
{ … }
HeaderRegexOptions::~HeaderRegexOptions() = default;
HeaderRegexOptions::HeaderRegexOptions(HeaderRegexOptions&& rhs) noexcept = default;
HeaderRegexOptions& HeaderRegexOptions::operator=(HeaderRegexOptions&& rhs) noexcept = default;
HeaderRegexOptions HeaderRegexOptions::Clone() const { … }
bool HeaderRegexOptions::Populate(
const base::Value::Dict& dict, HeaderRegexOptions& out, std::u16string& error) { … }
bool HeaderRegexOptions::Populate(
const base::Value& value, HeaderRegexOptions& out, std::u16string& error) { … }
base::expected<HeaderRegexOptions, std::u16string> HeaderRegexOptions::FromValue(const base::Value::Dict& value) { … }
base::expected<HeaderRegexOptions, std::u16string> HeaderRegexOptions::FromValue(const base::Value& value) { … }
base::Value::Dict HeaderRegexOptions::ToValue() const { … }
ModifyHeaderInfo::ModifyHeaderInfo()
: … { … }
ModifyHeaderInfo::~ModifyHeaderInfo() = default;
ModifyHeaderInfo::ModifyHeaderInfo(ModifyHeaderInfo&& rhs) noexcept = default;
ModifyHeaderInfo& ModifyHeaderInfo::operator=(ModifyHeaderInfo&& rhs) noexcept = default;
ModifyHeaderInfo ModifyHeaderInfo::Clone() const { … }
bool ModifyHeaderInfo::Populate(
const base::Value::Dict& dict, ModifyHeaderInfo& out, std::u16string& error) { … }
bool ModifyHeaderInfo::Populate(
const base::Value& value, ModifyHeaderInfo& out, std::u16string& error) { … }
base::expected<ModifyHeaderInfo, std::u16string> ModifyHeaderInfo::FromValue(const base::Value::Dict& value) { … }
base::expected<ModifyHeaderInfo, std::u16string> ModifyHeaderInfo::FromValue(const base::Value& value) { … }
base::Value::Dict ModifyHeaderInfo::ToValue() const { … }
RuleAction::RuleAction()
: … { … }
RuleAction::~RuleAction() = default;
RuleAction::RuleAction(RuleAction&& rhs) noexcept = default;
RuleAction& RuleAction::operator=(RuleAction&& rhs) noexcept = default;
RuleAction RuleAction::Clone() const { … }
bool RuleAction::Populate(
const base::Value::Dict& dict, RuleAction& out, std::u16string& error) { … }
bool RuleAction::Populate(
const base::Value& value, RuleAction& out, std::u16string& error) { … }
base::expected<RuleAction, std::u16string> RuleAction::FromValue(const base::Value::Dict& value) { … }
base::expected<RuleAction, std::u16string> RuleAction::FromValue(const base::Value& value) { … }
base::Value::Dict RuleAction::ToValue() const { … }
Rule::Rule()
: … { … }
Rule::~Rule() = default;
Rule::Rule(Rule&& rhs) noexcept = default;
Rule& Rule::operator=(Rule&& rhs) noexcept = default;
Rule Rule::Clone() const { … }
bool Rule::Populate(
const base::Value::Dict& dict, Rule& out, std::u16string& error) { … }
bool Rule::Populate(
const base::Value& value, Rule& out, std::u16string& error) { … }
base::expected<Rule, std::u16string> Rule::FromValue(const base::Value::Dict& value) { … }
base::expected<Rule, std::u16string> Rule::FromValue(const base::Value& value) { … }
base::Value::Dict Rule::ToValue() const { … }
MatchedRule::MatchedRule()
: … { … }
MatchedRule::~MatchedRule() = default;
MatchedRule::MatchedRule(MatchedRule&& rhs) noexcept = default;
MatchedRule& MatchedRule::operator=(MatchedRule&& rhs) noexcept = default;
MatchedRule MatchedRule::Clone() const { … }
bool MatchedRule::Populate(
const base::Value::Dict& dict, MatchedRule& out, std::u16string& error) { … }
bool MatchedRule::Populate(
const base::Value& value, MatchedRule& out, std::u16string& error) { … }
base::expected<MatchedRule, std::u16string> MatchedRule::FromValue(const base::Value::Dict& value) { … }
base::expected<MatchedRule, std::u16string> MatchedRule::FromValue(const base::Value& value) { … }
base::Value::Dict MatchedRule::ToValue() const { … }
GetRulesFilter::GetRulesFilter()
{ … }
GetRulesFilter::~GetRulesFilter() = default;
GetRulesFilter::GetRulesFilter(GetRulesFilter&& rhs) noexcept = default;
GetRulesFilter& GetRulesFilter::operator=(GetRulesFilter&& rhs) noexcept = default;
GetRulesFilter GetRulesFilter::Clone() const { … }
bool GetRulesFilter::Populate(
const base::Value::Dict& dict, GetRulesFilter& out, std::u16string& error) { … }
bool GetRulesFilter::Populate(
const base::Value& value, GetRulesFilter& out, std::u16string& error) { … }
base::expected<GetRulesFilter, std::u16string> GetRulesFilter::FromValue(const base::Value::Dict& value) { … }
base::expected<GetRulesFilter, std::u16string> GetRulesFilter::FromValue(const base::Value& value) { … }
base::Value::Dict GetRulesFilter::ToValue() const { … }
MatchedRuleInfo::MatchedRuleInfo()
: … { … }
MatchedRuleInfo::~MatchedRuleInfo() = default;
MatchedRuleInfo::MatchedRuleInfo(MatchedRuleInfo&& rhs) noexcept = default;
MatchedRuleInfo& MatchedRuleInfo::operator=(MatchedRuleInfo&& rhs) noexcept = default;
MatchedRuleInfo MatchedRuleInfo::Clone() const { … }
bool MatchedRuleInfo::Populate(
const base::Value::Dict& dict, MatchedRuleInfo& out, std::u16string& error) { … }
bool MatchedRuleInfo::Populate(
const base::Value& value, MatchedRuleInfo& out, std::u16string& error) { … }
base::expected<MatchedRuleInfo, std::u16string> MatchedRuleInfo::FromValue(const base::Value::Dict& value) { … }
base::expected<MatchedRuleInfo, std::u16string> MatchedRuleInfo::FromValue(const base::Value& value) { … }
base::Value::Dict MatchedRuleInfo::ToValue() const { … }
MatchedRulesFilter::MatchedRulesFilter()
{ … }
MatchedRulesFilter::~MatchedRulesFilter() = default;
MatchedRulesFilter::MatchedRulesFilter(MatchedRulesFilter&& rhs) noexcept = default;
MatchedRulesFilter& MatchedRulesFilter::operator=(MatchedRulesFilter&& rhs) noexcept = default;
MatchedRulesFilter MatchedRulesFilter::Clone() const { … }
bool MatchedRulesFilter::Populate(
const base::Value::Dict& dict, MatchedRulesFilter& out, std::u16string& error) { … }
bool MatchedRulesFilter::Populate(
const base::Value& value, MatchedRulesFilter& out, std::u16string& error) { … }
base::expected<MatchedRulesFilter, std::u16string> MatchedRulesFilter::FromValue(const base::Value::Dict& value) { … }
base::expected<MatchedRulesFilter, std::u16string> MatchedRulesFilter::FromValue(const base::Value& value) { … }
base::Value::Dict MatchedRulesFilter::ToValue() const { … }
RulesMatchedDetails::RulesMatchedDetails()
{ … }
RulesMatchedDetails::~RulesMatchedDetails() = default;
RulesMatchedDetails::RulesMatchedDetails(RulesMatchedDetails&& rhs) noexcept = default;
RulesMatchedDetails& RulesMatchedDetails::operator=(RulesMatchedDetails&& rhs) noexcept = default;
RulesMatchedDetails RulesMatchedDetails::Clone() const { … }
bool RulesMatchedDetails::Populate(
const base::Value::Dict& dict, RulesMatchedDetails& out, std::u16string& error) { … }
bool RulesMatchedDetails::Populate(
const base::Value& value, RulesMatchedDetails& out, std::u16string& error) { … }
base::expected<RulesMatchedDetails, std::u16string> RulesMatchedDetails::FromValue(const base::Value::Dict& value) { … }
base::expected<RulesMatchedDetails, std::u16string> RulesMatchedDetails::FromValue(const base::Value& value) { … }
base::Value::Dict RulesMatchedDetails::ToValue() const { … }
RequestDetails::RequestDetails()
: … { … }
RequestDetails::~RequestDetails() = default;
RequestDetails::RequestDetails(RequestDetails&& rhs) noexcept = default;
RequestDetails& RequestDetails::operator=(RequestDetails&& rhs) noexcept = default;
RequestDetails RequestDetails::Clone() const { … }
bool RequestDetails::Populate(
const base::Value::Dict& dict, RequestDetails& out, std::u16string& error) { … }
bool RequestDetails::Populate(
const base::Value& value, RequestDetails& out, std::u16string& error) { … }
base::expected<RequestDetails, std::u16string> RequestDetails::FromValue(const base::Value::Dict& value) { … }
base::expected<RequestDetails, std::u16string> RequestDetails::FromValue(const base::Value& value) { … }
base::Value::Dict RequestDetails::ToValue() const { … }
TestMatchRequestDetails::ResponseHeaders::ResponseHeaders()
{ … }
TestMatchRequestDetails::ResponseHeaders::~ResponseHeaders() = default;
TestMatchRequestDetails::ResponseHeaders::ResponseHeaders(ResponseHeaders&& rhs) noexcept = default;
TestMatchRequestDetails::ResponseHeaders& TestMatchRequestDetails::ResponseHeaders::operator=(ResponseHeaders&& rhs) noexcept = default;
TestMatchRequestDetails::ResponseHeaders TestMatchRequestDetails::ResponseHeaders::Clone() const { … }
bool TestMatchRequestDetails::ResponseHeaders::Populate(
const base::Value::Dict& dict, ResponseHeaders& out, std::u16string& error) { … }
bool TestMatchRequestDetails::ResponseHeaders::Populate(
const base::Value& value, ResponseHeaders& out, std::u16string& error) { … }
base::expected<TestMatchRequestDetails::ResponseHeaders, std::u16string> TestMatchRequestDetails::ResponseHeaders::FromValue(const base::Value::Dict& value) { … }
base::expected<TestMatchRequestDetails::ResponseHeaders, std::u16string> TestMatchRequestDetails::ResponseHeaders::FromValue(const base::Value& value) { … }
base::Value::Dict TestMatchRequestDetails::ResponseHeaders::ToValue() const { … }
TestMatchRequestDetails::TestMatchRequestDetails()
: … { … }
TestMatchRequestDetails::~TestMatchRequestDetails() = default;
TestMatchRequestDetails::TestMatchRequestDetails(TestMatchRequestDetails&& rhs) noexcept = default;
TestMatchRequestDetails& TestMatchRequestDetails::operator=(TestMatchRequestDetails&& rhs) noexcept = default;
TestMatchRequestDetails TestMatchRequestDetails::Clone() const { … }
bool TestMatchRequestDetails::Populate(
const base::Value::Dict& dict, TestMatchRequestDetails& out, std::u16string& error) { … }
bool TestMatchRequestDetails::Populate(
const base::Value& value, TestMatchRequestDetails& out, std::u16string& error) { … }
base::expected<TestMatchRequestDetails, std::u16string> TestMatchRequestDetails::FromValue(const base::Value::Dict& value) { … }
base::expected<TestMatchRequestDetails, std::u16string> TestMatchRequestDetails::FromValue(const base::Value& value) { … }
base::Value::Dict TestMatchRequestDetails::ToValue() const { … }
MatchedRuleInfoDebug::MatchedRuleInfoDebug()
{ … }
MatchedRuleInfoDebug::~MatchedRuleInfoDebug() = default;
MatchedRuleInfoDebug::MatchedRuleInfoDebug(MatchedRuleInfoDebug&& rhs) noexcept = default;
MatchedRuleInfoDebug& MatchedRuleInfoDebug::operator=(MatchedRuleInfoDebug&& rhs) noexcept = default;
MatchedRuleInfoDebug MatchedRuleInfoDebug::Clone() const { … }
bool MatchedRuleInfoDebug::Populate(
const base::Value::Dict& dict, MatchedRuleInfoDebug& out, std::u16string& error) { … }
bool MatchedRuleInfoDebug::Populate(
const base::Value& value, MatchedRuleInfoDebug& out, std::u16string& error) { … }
base::expected<MatchedRuleInfoDebug, std::u16string> MatchedRuleInfoDebug::FromValue(const base::Value::Dict& value) { … }
base::expected<MatchedRuleInfoDebug, std::u16string> MatchedRuleInfoDebug::FromValue(const base::Value& value) { … }
base::Value::Dict MatchedRuleInfoDebug::ToValue() const { … }
DNRInfo::DNRInfo()
{ … }
DNRInfo::~DNRInfo() = default;
DNRInfo::DNRInfo(DNRInfo&& rhs) noexcept = default;
DNRInfo& DNRInfo::operator=(DNRInfo&& rhs) noexcept = default;
constexpr char DNRInfo::kRuleResources[];
DNRInfo DNRInfo::Clone() const { … }
bool DNRInfo::Populate(
const base::Value::Dict& dict, DNRInfo& out, std::u16string& error) { … }
bool DNRInfo::Populate(
const base::Value& value, DNRInfo& out, std::u16string& error) { … }
base::expected<DNRInfo, std::u16string> DNRInfo::FromValue(const base::Value::Dict& value) { … }
base::expected<DNRInfo, std::u16string> DNRInfo::FromValue(const base::Value& value) { … }
base::Value::Dict DNRInfo::ToValue() const { … }
bool DNRInfo::ParseFromDictionary(
const base::Value::Dict& root_dict, std::string_view key, DNRInfo& out, std::u16string& error, std::vector<std::string_view>& error_path_reversed) { … }
RegexOptions::RegexOptions()
{ … }
RegexOptions::~RegexOptions() = default;
RegexOptions::RegexOptions(RegexOptions&& rhs) noexcept = default;
RegexOptions& RegexOptions::operator=(RegexOptions&& rhs) noexcept = default;
RegexOptions RegexOptions::Clone() const { … }
bool RegexOptions::Populate(
const base::Value::Dict& dict, RegexOptions& out, std::u16string& error) { … }
bool RegexOptions::Populate(
const base::Value& value, RegexOptions& out, std::u16string& error) { … }
base::expected<RegexOptions, std::u16string> RegexOptions::FromValue(const base::Value::Dict& value) { … }
base::expected<RegexOptions, std::u16string> RegexOptions::FromValue(const base::Value& value) { … }
base::Value::Dict RegexOptions::ToValue() const { … }
IsRegexSupportedResult::IsRegexSupportedResult()
: … { … }
IsRegexSupportedResult::~IsRegexSupportedResult() = default;
IsRegexSupportedResult::IsRegexSupportedResult(IsRegexSupportedResult&& rhs) noexcept = default;
IsRegexSupportedResult& IsRegexSupportedResult::operator=(IsRegexSupportedResult&& rhs) noexcept = default;
IsRegexSupportedResult IsRegexSupportedResult::Clone() const { … }
bool IsRegexSupportedResult::Populate(
const base::Value::Dict& dict, IsRegexSupportedResult& out, std::u16string& error) { … }
bool IsRegexSupportedResult::Populate(
const base::Value& value, IsRegexSupportedResult& out, std::u16string& error) { … }
base::expected<IsRegexSupportedResult, std::u16string> IsRegexSupportedResult::FromValue(const base::Value::Dict& value) { … }
base::expected<IsRegexSupportedResult, std::u16string> IsRegexSupportedResult::FromValue(const base::Value& value) { … }
base::Value::Dict IsRegexSupportedResult::ToValue() const { … }
TestMatchOutcomeResult::TestMatchOutcomeResult()
{ … }
TestMatchOutcomeResult::~TestMatchOutcomeResult() = default;
TestMatchOutcomeResult::TestMatchOutcomeResult(TestMatchOutcomeResult&& rhs) noexcept = default;
TestMatchOutcomeResult& TestMatchOutcomeResult::operator=(TestMatchOutcomeResult&& rhs) noexcept = default;
TestMatchOutcomeResult TestMatchOutcomeResult::Clone() const { … }
bool TestMatchOutcomeResult::Populate(
const base::Value::Dict& dict, TestMatchOutcomeResult& out, std::u16string& error) { … }
bool TestMatchOutcomeResult::Populate(
const base::Value& value, TestMatchOutcomeResult& out, std::u16string& error) { … }
base::expected<TestMatchOutcomeResult, std::u16string> TestMatchOutcomeResult::FromValue(const base::Value::Dict& value) { … }
base::expected<TestMatchOutcomeResult, std::u16string> TestMatchOutcomeResult::FromValue(const base::Value& value) { … }
base::Value::Dict TestMatchOutcomeResult::ToValue() const { … }
UpdateRuleOptions::UpdateRuleOptions()
{ … }
UpdateRuleOptions::~UpdateRuleOptions() = default;
UpdateRuleOptions::UpdateRuleOptions(UpdateRuleOptions&& rhs) noexcept = default;
UpdateRuleOptions& UpdateRuleOptions::operator=(UpdateRuleOptions&& rhs) noexcept = default;
UpdateRuleOptions UpdateRuleOptions::Clone() const { … }
bool UpdateRuleOptions::Populate(
const base::Value::Dict& dict, UpdateRuleOptions& out, std::u16string& error) { … }
bool UpdateRuleOptions::Populate(
const base::Value& value, UpdateRuleOptions& out, std::u16string& error) { … }
base::expected<UpdateRuleOptions, std::u16string> UpdateRuleOptions::FromValue(const base::Value::Dict& value) { … }
base::expected<UpdateRuleOptions, std::u16string> UpdateRuleOptions::FromValue(const base::Value& value) { … }
base::Value::Dict UpdateRuleOptions::ToValue() const { … }
UpdateRulesetOptions::UpdateRulesetOptions()
{ … }
UpdateRulesetOptions::~UpdateRulesetOptions() = default;
UpdateRulesetOptions::UpdateRulesetOptions(UpdateRulesetOptions&& rhs) noexcept = default;
UpdateRulesetOptions& UpdateRulesetOptions::operator=(UpdateRulesetOptions&& rhs) noexcept = default;
UpdateRulesetOptions UpdateRulesetOptions::Clone() const { … }
bool UpdateRulesetOptions::Populate(
const base::Value::Dict& dict, UpdateRulesetOptions& out, std::u16string& error) { … }
bool UpdateRulesetOptions::Populate(
const base::Value& value, UpdateRulesetOptions& out, std::u16string& error) { … }
base::expected<UpdateRulesetOptions, std::u16string> UpdateRulesetOptions::FromValue(const base::Value::Dict& value) { … }
base::expected<UpdateRulesetOptions, std::u16string> UpdateRulesetOptions::FromValue(const base::Value& value) { … }
base::Value::Dict UpdateRulesetOptions::ToValue() const { … }
UpdateStaticRulesOptions::UpdateStaticRulesOptions()
{ … }
UpdateStaticRulesOptions::~UpdateStaticRulesOptions() = default;
UpdateStaticRulesOptions::UpdateStaticRulesOptions(UpdateStaticRulesOptions&& rhs) noexcept = default;
UpdateStaticRulesOptions& UpdateStaticRulesOptions::operator=(UpdateStaticRulesOptions&& rhs) noexcept = default;
UpdateStaticRulesOptions UpdateStaticRulesOptions::Clone() const { … }
bool UpdateStaticRulesOptions::Populate(
const base::Value::Dict& dict, UpdateStaticRulesOptions& out, std::u16string& error) { … }
bool UpdateStaticRulesOptions::Populate(
const base::Value& value, UpdateStaticRulesOptions& out, std::u16string& error) { … }
base::expected<UpdateStaticRulesOptions, std::u16string> UpdateStaticRulesOptions::FromValue(const base::Value::Dict& value) { … }
base::expected<UpdateStaticRulesOptions, std::u16string> UpdateStaticRulesOptions::FromValue(const base::Value& value) { … }
base::Value::Dict UpdateStaticRulesOptions::ToValue() const { … }
GetDisabledRuleIdsOptions::GetDisabledRuleIdsOptions()
{ … }
GetDisabledRuleIdsOptions::~GetDisabledRuleIdsOptions() = default;
GetDisabledRuleIdsOptions::GetDisabledRuleIdsOptions(GetDisabledRuleIdsOptions&& rhs) noexcept = default;
GetDisabledRuleIdsOptions& GetDisabledRuleIdsOptions::operator=(GetDisabledRuleIdsOptions&& rhs) noexcept = default;
GetDisabledRuleIdsOptions GetDisabledRuleIdsOptions::Clone() const { … }
bool GetDisabledRuleIdsOptions::Populate(
const base::Value::Dict& dict, GetDisabledRuleIdsOptions& out, std::u16string& error) { … }
bool GetDisabledRuleIdsOptions::Populate(
const base::Value& value, GetDisabledRuleIdsOptions& out, std::u16string& error) { … }
base::expected<GetDisabledRuleIdsOptions, std::u16string> GetDisabledRuleIdsOptions::FromValue(const base::Value::Dict& value) { … }
base::expected<GetDisabledRuleIdsOptions, std::u16string> GetDisabledRuleIdsOptions::FromValue(const base::Value& value) { … }
base::Value::Dict GetDisabledRuleIdsOptions::ToValue() const { … }
TabActionCountUpdate::TabActionCountUpdate()
: … { … }
TabActionCountUpdate::~TabActionCountUpdate() = default;
TabActionCountUpdate::TabActionCountUpdate(TabActionCountUpdate&& rhs) noexcept = default;
TabActionCountUpdate& TabActionCountUpdate::operator=(TabActionCountUpdate&& rhs) noexcept = default;
TabActionCountUpdate TabActionCountUpdate::Clone() const { … }
bool TabActionCountUpdate::Populate(
const base::Value::Dict& dict, TabActionCountUpdate& out, std::u16string& error) { … }
bool TabActionCountUpdate::Populate(
const base::Value& value, TabActionCountUpdate& out, std::u16string& error) { … }
base::expected<TabActionCountUpdate, std::u16string> TabActionCountUpdate::FromValue(const base::Value::Dict& value) { … }
base::expected<TabActionCountUpdate, std::u16string> TabActionCountUpdate::FromValue(const base::Value& value) { … }
base::Value::Dict TabActionCountUpdate::ToValue() const { … }
ExtensionActionOptions::ExtensionActionOptions()
{ … }
ExtensionActionOptions::~ExtensionActionOptions() = default;
ExtensionActionOptions::ExtensionActionOptions(ExtensionActionOptions&& rhs) noexcept = default;
ExtensionActionOptions& ExtensionActionOptions::operator=(ExtensionActionOptions&& rhs) noexcept = default;
ExtensionActionOptions ExtensionActionOptions::Clone() const { … }
bool ExtensionActionOptions::Populate(
const base::Value::Dict& dict, ExtensionActionOptions& out, std::u16string& error) { … }
bool ExtensionActionOptions::Populate(
const base::Value& value, ExtensionActionOptions& out, std::u16string& error) { … }
base::expected<ExtensionActionOptions, std::u16string> ExtensionActionOptions::FromValue(const base::Value::Dict& value) { … }
base::expected<ExtensionActionOptions, std::u16string> ExtensionActionOptions::FromValue(const base::Value& value) { … }
base::Value::Dict ExtensionActionOptions::ToValue() const { … }
ManifestKeys::ManifestKeys()
{ … }
ManifestKeys::~ManifestKeys() = default;
ManifestKeys::ManifestKeys(ManifestKeys&& rhs) noexcept = default;
ManifestKeys& ManifestKeys::operator=(ManifestKeys&& rhs) noexcept = default;
constexpr char ManifestKeys::kDeclarativeNetRequest[];
bool ManifestKeys::ParseFromDictionary(
const base::Value::Dict& root_dict, ManifestKeys& out, std::u16string& error) { … }
namespace UpdateDynamicRules {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args, std::u16string& error) { … }
base::expected<Params, std::u16string> Params::Create(const base::Value::List& args) { … }
base::Value::List Results::Create() { … }
}
namespace GetDynamicRules {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args, std::u16string& error) { … }
base::expected<Params, std::u16string> Params::Create(const base::Value::List& args) { … }
base::Value::List Results::Create(const std::vector<Rule>& rules) { … }
}
namespace UpdateSessionRules {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args, std::u16string& error) { … }
base::expected<Params, std::u16string> Params::Create(const base::Value::List& args) { … }
base::Value::List Results::Create() { … }
}
namespace GetSessionRules {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args, std::u16string& error) { … }
base::expected<Params, std::u16string> Params::Create(const base::Value::List& args) { … }
base::Value::List Results::Create(const std::vector<Rule>& rules) { … }
}
namespace UpdateEnabledRulesets {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args, std::u16string& error) { … }
base::expected<Params, std::u16string> Params::Create(const base::Value::List& args) { … }
base::Value::List Results::Create() { … }
}
namespace GetEnabledRulesets {
base::Value::List Results::Create(const std::vector<std::string>& ruleset_ids) { … }
}
namespace UpdateStaticRules {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args, std::u16string& error) { … }
base::expected<Params, std::u16string> Params::Create(const base::Value::List& args) { … }
base::Value::List Results::Create() { … }
}
namespace GetDisabledRuleIds {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args, std::u16string& error) { … }
base::expected<Params, std::u16string> Params::Create(const base::Value::List& args) { … }
base::Value::List Results::Create(const std::vector<int>& disabled_rule_ids) { … }
}
namespace GetMatchedRules {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args, std::u16string& error) { … }
base::expected<Params, std::u16string> Params::Create(const base::Value::List& args) { … }
base::Value::List Results::Create(const RulesMatchedDetails& details) { … }
}
namespace SetExtensionActionOptions {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args, std::u16string& error) { … }
base::expected<Params, std::u16string> Params::Create(const base::Value::List& args) { … }
base::Value::List Results::Create() { … }
}
namespace IsRegexSupported {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args, std::u16string& error) { … }
base::expected<Params, std::u16string> Params::Create(const base::Value::List& args) { … }
base::Value::List Results::Create(const IsRegexSupportedResult& result) { … }
}
namespace GetAvailableStaticRuleCount {
base::Value::List Results::Create(int count) { … }
}
namespace TestMatchOutcome {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args, std::u16string& error) { … }
base::expected<Params, std::u16string> Params::Create(const base::Value::List& args) { … }
base::Value::List Results::Create(const TestMatchOutcomeResult& result) { … }
}
namespace OnRuleMatchedDebug {
const char kEventName[] = …;
base::Value::List Create(const MatchedRuleInfoDebug& info) { … }
}
}
}
}