#include "components/performance_manager/decorators/site_data_node_data.h"
#include "base/check_op.h"
#include "components/performance_manager/graph/page_node_impl.h"
#include "components/performance_manager/persistence/site_data/site_data_cache.h"
#include "components/performance_manager/persistence/site_data/site_data_writer.h"
#include "components/performance_manager/public/decorators/site_data_recorder.h"
#include "components/performance_manager/public/persistence/site_data/site_data_reader.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace performance_manager {
namespace {
TabVisibility GetPageNodeVisibility(const PageNode* page_node) { … }
}
SiteDataNodeData::SiteDataNodeData(const PageNodeImpl* page_node,
SiteDataRecorder* site_data_recorder)
: … { … }
SiteDataNodeData::~SiteDataNodeData() = default;
void SiteDataNodeData::OnMainFrameUrlChanged(const GURL& url,
bool page_is_visible) { … }
void SiteDataNodeData::OnIsLoadedIdleChanged(bool is_loaded_idle) { … }
void SiteDataNodeData::OnIsVisibleChanged(bool is_visible) { … }
void SiteDataNodeData::OnIsAudibleChanged(bool audible) { … }
void SiteDataNodeData::OnTitleUpdated() { … }
void SiteDataNodeData::OnFaviconUpdated() { … }
void SiteDataNodeData::Reset() { … }
SiteDataWriter* SiteDataNodeData::writer() const { … }
SiteDataReader* SiteDataNodeData::reader() const { … }
void SiteDataNodeData::SetDataCacheForTesting(SiteDataCache* cache) { … }
bool SiteDataNodeData::ShouldRecordFeatureUsageEvent(FeatureType feature_type) { … }
void SiteDataNodeData::MaybeNotifyBackgroundFeatureUsage(
void (SiteDataWriter::*method)(),
FeatureType feature_type) { … }
}