#include "chrome/browser/ui/performance_controls/tab_resource_usage_collector.h"
#include "base/no_destructor.h"
#include "base/time/time.h"
#include "chrome/browser/ui/performance_controls/tab_resource_usage_tab_helper.h"
#include "components/performance_manager/public/resource_attribution/page_context.h"
#include "components/performance_manager/public/resource_attribution/resource_types.h"
#include "content/public/browser/web_contents.h"
namespace {
constexpr base::TimeDelta kTabResourceUsageRefreshInterval = …;
MemorySummaryResult;
PageContext;
QueryBuilder;
QueryResultMap;
ResourceType;
}
TabResourceUsageCollector::TabResourceUsageCollector()
: … { … }
TabResourceUsageCollector::~TabResourceUsageCollector() = default;
TabResourceUsageCollector* TabResourceUsageCollector::Get() { … }
void TabResourceUsageCollector::AddObserver(Observer* o) { … }
void TabResourceUsageCollector::RemoveObserver(Observer* o) { … }
void TabResourceUsageCollector::ImmediatelyRefreshMetrics(
content::WebContents* web_contents) { … }
void TabResourceUsageCollector::ImmediatelyRefreshMetricsForAllTabs() { … }
void TabResourceUsageCollector::OnResourceUsageUpdated(
const QueryResultMap& results) { … }
void TabResourceUsageCollector::OnLoadingStateChange(
content::WebContents* web_contents,
LoadingState old_loading_state,
LoadingState new_loading_state) { … }