#include "components/page_load_metrics/browser/page_load_metrics_memory_tracker.h"
#include <map>
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
namespace features {
BASE_FEATURE(…);
}
namespace page_load_metrics {
namespace {
struct ObserverWeakPtrAndMemoryUpdates { … };
}
PageLoadMetricsMemoryTracker::PageLoadMetricsMemoryTracker() { … }
PageLoadMetricsMemoryTracker::~PageLoadMetricsMemoryTracker() = default;
void PageLoadMetricsMemoryTracker::Shutdown() { … }
void PageLoadMetricsMemoryTracker::OnV8MemoryMeasurementAvailable(
performance_manager::RenderProcessHostId render_process_host_id,
const performance_manager::v8_memory::V8DetailedMemoryProcessData&
process_data,
const performance_manager::v8_memory::V8DetailedMemoryObserverAnySeq::
FrameDataMap& frame_data) { … }
void PageLoadMetricsMemoryTracker::OnRenderFrameDeleted(
content::RenderFrameHost* render_frame_host,
MetricsWebContentsObserver* observer) { … }
int64_t PageLoadMetricsMemoryTracker::UpdateMemoryUsageAndGetDelta(
content::RenderFrameHost* render_frame_host,
uint64_t current_bytes_used) { … }
}