#include "content/browser/renderer_host/private_network_access_util.h"
#include "base/command_line.h"
#include "base/feature_list.h"
#include "build/chromeos_buildflags.h"
#include "content/browser/renderer_host/policy_container_host.h"
#include "content/common/features.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/url_constants.h"
#include "services/network/public/cpp/cross_origin_embedder_policy.h"
#include "services/network/public/cpp/ip_address_space_util.h"
#include "services/network/public/mojom/client_security_state.mojom.h"
#include "services/network/public/mojom/ip_address_space.mojom.h"
#include "services/network/public/mojom/url_response_head.mojom.h"
namespace content {
namespace {
Policy;
AddressSpace;
RequestContext;
enum class FeatureState { … };
FeatureState FeatureStateForContext(RequestContext request_context) { … }
}
Policy DerivePrivateNetworkRequestPolicy(
const PolicyContainerPolicies& policies,
RequestContext private_network_request_context) { … }
Policy DerivePolicyForNonSecureContext(AddressSpace ip_address_space) { … }
Policy DerivePolicyForSecureContext(AddressSpace ip_address_space) { … }
Policy ApplyFeatureStateToPolicy(FeatureState feature_state, Policy policy) { … }
Policy DerivePrivateNetworkRequestPolicy(
AddressSpace ip_address_space,
bool is_web_secure_context,
RequestContext private_network_request_context) { … }
network::mojom::ClientSecurityStatePtr DeriveClientSecurityState(
const PolicyContainerPolicies& policies,
PrivateNetworkRequestContext private_network_request_context) { … }
AddressSpace IPAddressSpaceForSpecialScheme(const GURL& url,
ContentBrowserClient* client) { … }
AddressSpace CalculateIPAddressSpace(
const GURL& url,
network::mojom::URLResponseHead* response_head,
ContentBrowserClient* client) { … }
network::mojom::PrivateNetworkRequestPolicy OverrideBlockWithWarn(
network::mojom::PrivateNetworkRequestPolicy policy) { … }
}