#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "components/page_load_metrics/browser/observers/ad_metrics/frame_data_utils.h"
#include "components/page_load_metrics/common/page_load_metrics.mojom.h"
#include "mojo/public/cpp/bindings/struct_ptr.h"
#include "net/base/mime_util.h"
#include "third_party/blink/public/common/mime_util/mime_util.h"
namespace page_load_metrics {
ResourceLoadAggregator::ResourceLoadAggregator() = default;
ResourceLoadAggregator::~ResourceLoadAggregator() = default;
ResourceMimeType ResourceLoadAggregator::GetResourceMimeType(
const mojom::ResourceDataUpdatePtr& resource) { … }
void ResourceLoadAggregator::ProcessResourceLoad(
const mojom::ResourceDataUpdatePtr& resource) { … }
void ResourceLoadAggregator::AdjustAdBytes(int64_t unaccounted_ad_bytes,
ResourceMimeType mime_type) { … }
PeakCpuAggregator::PeakCpuAggregator() = default;
PeakCpuAggregator::~PeakCpuAggregator() = default;
constexpr base::TimeDelta PeakCpuAggregator::kWindowSize;
void PeakCpuAggregator::UpdatePeakWindowedPercent(
base::TimeDelta cpu_usage_update,
base::TimeTicks update_time) { … }
void MemoryUsageAggregator::UpdateUsage(int64_t delta_bytes) { … }
}