#include "chrome/browser/process_resource_usage.h"
#include <utility>
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
#include "content/public/common/resource_usage_reporter_type_converters.h"
ProcessResourceUsage::ProcessResourceUsage(
mojo::PendingRemote<content::mojom::ResourceUsageReporter> service)
: … { … }
ProcessResourceUsage::~ProcessResourceUsage() { … }
void ProcessResourceUsage::RunPendingRefreshCallbacks() { … }
void ProcessResourceUsage::Refresh(base::OnceClosure callback) { … }
void ProcessResourceUsage::OnRefreshDone(
content::mojom::ResourceUsageDataPtr data) { … }
bool ProcessResourceUsage::ReportsV8MemoryStats() const { … }
size_t ProcessResourceUsage::GetV8MemoryAllocated() const { … }
size_t ProcessResourceUsage::GetV8MemoryUsed() const { … }
blink::WebCacheResourceTypeStats
ProcessResourceUsage::GetBlinkMemoryCacheStats() const { … }