chromium/content/browser/renderer_host/back_forward_cache_can_store_document_result.cc

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

#include "content/browser/renderer_host/back_forward_cache_can_store_document_result.h"

#include <inttypes.h>
#include <cstdint>

#include "base/debug/dump_without_crashing.h"
#include "base/feature_list.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "content/browser/renderer_host/render_frame_host_impl.h"
#include "content/common/debug_utils.h"
#include "content/public/browser/disallow_activation_reason.h"
#include "content/public/common/content_features.h"
#include "third_party/blink/public/common/scheduler/web_scheduler_tracked_feature.h"

namespace content {

namespace {

WebSchedulerTrackedFeature;
Reason;

std::string DescribeFeatures(BlockListedFeatures blocklisted_features) {}

std::vector<std::string> FeaturesToStringVector(
    BlockListedFeatures blocklisted_features) {}

const char* BrowsingInstanceSwapResultToString(
    std::optional<ShouldSwapBrowsingInstance> reason) {}

ProtoEnum;
ProtoEnum::BackForwardCacheNotRestoredReason NotRestoredReasonToTraceEnum(
    BackForwardCacheMetrics::NotRestoredReason reason) {}

}  // namespace

void BackForwardCacheCanStoreDocumentResult::WriteIntoTrace(
    perfetto::TracedProto<
        perfetto::protos::pbzero::BackForwardCacheCanStoreDocumentResult>
        result) const {}

bool BackForwardCacheCanStoreDocumentResult::operator==(
    const BackForwardCacheCanStoreDocumentResult& other) const {}

bool BackForwardCacheCanStoreDocumentResult::HasNotRestoredReason(
    BackForwardCacheMetrics::NotRestoredReason reason) const {}

void BackForwardCacheCanStoreDocumentResult::AddNotRestoredReason(
    BackForwardCacheMetrics::NotRestoredReason reason) {}

bool BackForwardCacheCanStoreDocumentResult::CanStore() const {}

bool BackForwardCacheCanStoreDocumentResult::CanRestore() const {}

const BlockListedFeatures
BackForwardCacheCanStoreDocumentResult::blocklisted_features() const {}

namespace {
std::string DisabledReasonsToString(
    const BackForwardCacheCanStoreDocumentResult::DisabledReasonsMap& reasons,
    bool for_not_restored_reasons = false) {}

std::string DisallowActivationReasonsToString(
    const std::set<uint64_t>& reasons) {}
}  // namespace

std::string BackForwardCacheCanStoreDocumentResult::ToString() const {}

std::unordered_set<std::string>
BackForwardCacheCanStoreDocumentResult::GetStringReasons() const {}

std::string BackForwardCacheCanStoreDocumentResult::NotRestoredReasonToString(
    BackForwardCacheMetrics::NotRestoredReason reason) const {}

std::string
BackForwardCacheCanStoreDocumentResult::NotRestoredReasonToReportString(
    BackForwardCacheMetrics::NotRestoredReason reason) const {}

void BackForwardCacheCanStoreDocumentResult::No(
    BackForwardCacheMetrics::NotRestoredReason reason) {}

void BackForwardCacheCanStoreDocumentResult::NoDueToFeatures(
    BlockingDetailsMap map) {}

void BackForwardCacheCanStoreDocumentResult::
    NoDueToDisableForRenderFrameHostCalled(
        const BackForwardCacheCanStoreDocumentResult::DisabledReasonsMap&
            reasons) {}

void BackForwardCacheCanStoreDocumentResult::NoDueToRelatedActiveContents(
    std::optional<ShouldSwapBrowsingInstance> browsing_instance_swap_result) {}

void BackForwardCacheCanStoreDocumentResult::NoDueToDisallowActivation(
    uint64_t reason) {}

void BackForwardCacheCanStoreDocumentResult::NoDueToAXEvents(
    const std::vector<ui::AXEvent>& events) {}

void BackForwardCacheCanStoreDocumentResult::AddReasonsFrom(
    const BackForwardCacheCanStoreDocumentResult& other) {}

BackForwardCacheCanStoreDocumentResult::
    BackForwardCacheCanStoreDocumentResult() = default;
BackForwardCacheCanStoreDocumentResult::BackForwardCacheCanStoreDocumentResult(
    BackForwardCacheCanStoreDocumentResult& other)
    :{}
BackForwardCacheCanStoreDocumentResult::BackForwardCacheCanStoreDocumentResult(
    BackForwardCacheCanStoreDocumentResult&&) = default;
BackForwardCacheCanStoreDocumentResult::
    ~BackForwardCacheCanStoreDocumentResult() = default;

}  // namespace content