#include "chrome/browser/site_isolation/site_details.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
#include "base/trace_event/trace_event.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/page.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/site_isolation_policy.h"
#include "extensions/buildflags/buildflags.h"
#include "url/origin.h"
#if BUILDFLAG(ENABLE_EXTENSIONS)
#include "extensions/browser/extension_registry.h"
#include "extensions/common/constants.h"
#include "extensions/common/extension.h"
#endif
BrowserThread;
RenderFrameHost;
namespace {
content::SiteInstance* DeterminePrimarySiteInstance(
content::SiteInstance* site_instance,
SiteData* site_data) { … }
}
BrowsingInstanceInfo::BrowsingInstanceInfo() = default;
BrowsingInstanceInfo::BrowsingInstanceInfo(const BrowsingInstanceInfo& other) =
default;
BrowsingInstanceInfo::~BrowsingInstanceInfo() = default;
SiteData::SiteData() = default;
SiteData::SiteData(const SiteData& other) = default;
SiteData::~SiteData() = default;
void SiteDetails::CollectSiteInfo(content::Page& page, SiteData* site_data) { … }
int SiteDetails::EstimateOriginAgentClusterOverhead(const SiteData& site_data) { … }
void SiteDetails::UpdateHistograms(
const BrowserContextSiteDataMap& site_data_map,
size_t live_process_count) { … }