#include "content/browser/browsing_instance.h"
#include "base/check_op.h"
#include "base/command_line.h"
#include "base/containers/contains.h"
#include "content/browser/child_process_security_policy_impl.h"
#include "content/browser/origin_agent_cluster_isolation_state.h"
#include "content/browser/security/coop/coop_related_group.h"
#include "content/browser/site_info.h"
#include "content/browser/site_instance_impl.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_or_resource_context.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/site_isolation_policy.h"
#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/url_constants.h"
namespace content {
int BrowsingInstance::next_browsing_instance_id_ = …;
BrowsingInstance::BrowsingInstance(
BrowserContext* browser_context,
const WebExposedIsolationInfo& web_exposed_isolation_info,
bool is_guest,
bool is_fenced,
bool is_fixed_storage_partition,
const scoped_refptr<CoopRelatedGroup>& coop_related_group,
std::optional<url::Origin> common_coop_origin)
: … { … }
BrowserContext* BrowsingInstance::GetBrowserContext() const { … }
bool BrowsingInstance::HasSiteInstance(const SiteInfo& site_info) { … }
scoped_refptr<SiteInstanceImpl> BrowsingInstance::GetSiteInstanceForURL(
const UrlInfo& url_info,
bool allow_default_instance) { … }
SiteInfo BrowsingInstance::GetSiteInfoForURL(const UrlInfo& url_info,
bool allow_default_instance) { … }
scoped_refptr<SiteInstanceImpl> BrowsingInstance::GetSiteInstanceForSiteInfo(
const SiteInfo& site_info) { … }
scoped_refptr<SiteInstanceImpl>
BrowsingInstance::GetCoopRelatedSiteInstanceForURL(
const UrlInfo& url_info,
bool allow_default_instance) { … }
scoped_refptr<SiteInstanceImpl> BrowsingInstance::GetSiteInstanceForURLHelper(
const UrlInfo& url_info,
bool allow_default_instance) { … }
void BrowsingInstance::RegisterSiteInstance(SiteInstanceImpl* site_instance) { … }
void BrowsingInstance::UnregisterSiteInstance(SiteInstanceImpl* site_instance) { … }
BrowsingInstanceId BrowsingInstance::NextBrowsingInstanceId() { … }
BrowsingInstance::~BrowsingInstance() { … }
SiteInfo BrowsingInstance::ComputeSiteInfoForURL(
const UrlInfo& url_info) const { … }
int BrowsingInstance::EstimateOriginAgentClusterOverhead() { … }
size_t BrowsingInstance::GetCoopRelatedGroupActiveContentsCount() { … }
void BrowsingInstance::IncrementActiveContentsCount() { … }
void BrowsingInstance::DecrementActiveContentsCount() { … }
}