chromium/content/common/content_navigation_policy.cc

// Copyright 2020 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/common/content_navigation_policy.h"

#include <bitset>

#include "base/command_line.h"
#include "base/metrics/field_trial_params.h"
#include "base/system/sys_info.h"
#include "build/build_config.h"
#include "content/common/features.h"
#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
#include "net/base/features.h"

namespace features {
BASE_FEATURE();
}

namespace content {

bool DeviceHasEnoughMemoryForBackForwardCache() {}

bool IsBackForwardCacheDisabledByCommandLine() {}

bool IsBackForwardCacheEnabled() {}

bool CanCrossSiteNavigationsProactivelySwapBrowsingInstances() {}

const char kRenderDocumentLevelParameterName[] =;

constexpr base::FeatureParam<RenderDocumentLevel>::Option
    render_document_levels[] =;
const base::FeatureParam<RenderDocumentLevel> render_document_level{};

RenderDocumentLevel GetRenderDocumentLevel() {}

std::string GetRenderDocumentLevelName(RenderDocumentLevel level) {}

bool ShouldCreateNewRenderFrameHostOnSameSiteNavigation(
    bool is_main_frame,
    bool is_local_root,
    bool has_committed_any_navigation,
    bool must_be_replaced) {}

bool ShouldCreateNewHostForAllFrames() {}

bool ShouldSkipEarlyCommitPendingForCrashedFrame() {}

static constexpr base::FeatureParam<NavigationQueueingFeatureLevel>::Option
    kNavigationQueueingFeatureLevels[] =;
const base::FeatureParam<NavigationQueueingFeatureLevel>
    kNavigationQueueingFeatureLevelParam{};

NavigationQueueingFeatureLevel GetNavigationQueueingFeatureLevel() {}

bool ShouldAvoidRedundantNavigationCancellations() {}

bool ShouldQueueNavigationsWhenPendingCommitRFHExists() {}

bool ShouldRestrictCanAccessDataForOriginToUIThread() {}

bool ShouldCreateSiteInstanceForDataUrls() {}

}  // namespace content