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

// Copyright 2022 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_rules_header.h"

#include "base/containers/contains.h"
#include "base/feature_list.h"
#include "net/http/structured_headers.h"
#include "services/network/public/mojom/fetch_api.mojom-blink-forward.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/mojom/devtools/console_message.mojom-shared.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-blink-forward.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-shared.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/execution_context/security_context.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/core/loader/resource/speculation_rules_resource.h"
#include "third_party/blink/renderer/core/loader/speculation_rule_loader.h"
#include "third_party/blink/renderer/core/speculation_rules/speculation_rules_metrics.h"
#include "third_party/blink/renderer/platform/loader/fetch/fetch_initiator_type_names.h"
#include "third_party/blink/renderer/platform/loader/fetch/fetch_parameters.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_loader_options.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_request.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_response.h"
#include "third_party/blink/renderer/platform/network/http_names.h"
#include "third_party/blink/renderer/platform/weborigin/security_origin.h"

namespace blink {

SpeculationRulesHeader::SpeculationRulesHeader() = default;
SpeculationRulesHeader::~SpeculationRulesHeader() = default;

// static
void SpeculationRulesHeader::ProcessHeadersForDocumentResponse(
    const ResourceResponse& response,
    LocalDOMWindow& window) {}

void SpeculationRulesHeader::ParseSpeculationRulesHeader(
    const String& header_value,
    const KURL& base_url) {}

void SpeculationRulesHeader::ReportErrors(LocalDOMWindow& window) {}

void SpeculationRulesHeader::StartFetches(Document& document) {}

}  // namespace blink