#include "chrome/browser/ui/performance_controls/tab_resource_usage_tab_helper.h"
#include "chrome/browser/ui/performance_controls/tab_resource_usage_collector.h"
void TabResourceUsage::SetMemoryUsageInBytes(uint64_t memory_usage_bytes) { … }
WEB_CONTENTS_USER_DATA_KEY_IMPL(TabResourceUsageTabHelper);
TabResourceUsageTabHelper::~TabResourceUsageTabHelper() = default;
TabResourceUsageTabHelper::TabResourceUsageTabHelper(
content::WebContents* contents)
: … { … }
void TabResourceUsageTabHelper::PrimaryPageChanged(content::Page&) { … }
uint64_t TabResourceUsageTabHelper::GetMemoryUsageInBytes() { … }
void TabResourceUsageTabHelper::SetMemoryUsageInBytes(
uint64_t memory_usage_bytes) { … }
scoped_refptr<const TabResourceUsage>
TabResourceUsageTabHelper::resource_usage() const { … }