chromium/third_party/blink/renderer/core/speculation_rules/speculation_rule.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/core/speculation_rules/speculation_rule.h"

#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/core/speculation_rules/document_rule_predicate.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"

namespace blink {

SpeculationRule::SpeculationRule(
    Vector<KURL> urls,
    DocumentRulePredicate* predicate,
    RequiresAnonymousClientIPWhenCrossOrigin requires_anonymous_client_ip,
    std::optional<mojom::blink::SpeculationTargetHint> target_hint,
    std::optional<network::mojom::ReferrerPolicy> referrer_policy,
    mojom::blink::SpeculationEagerness eagerness,
    network::mojom::blink::NoVarySearchPtr no_vary_search_expected,
    mojom::blink::SpeculationInjectionType injection_type)
    :{}

SpeculationRule::~SpeculationRule() = default;

void SpeculationRule::Trace(Visitor* visitor) const {}

}  // namespace blink