#include "chrome/browser/ui/webui/webui_load_timer.h"
#include "base/metrics/histogram.h"
#include "base/timer/elapsed_timer.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/web_contents.h"
namespace {
void CallUmaHistogramTimes(const std::string& name, base::TimeDelta duration) { … }
}
WebuiLoadTimer::WebuiLoadTimer(
content::WebContents* web_contents,
const std::string& document_initial_load_uma_id,
const std::string& document_load_completed_uma_id)
: … { … }
WebuiLoadTimer::~WebuiLoadTimer() = default;
void WebuiLoadTimer::DidStartNavigation(
content::NavigationHandle* navigation_handle) { … }
void WebuiLoadTimer::DOMContentLoaded(
content::RenderFrameHost* render_frame_host) { … }
void WebuiLoadTimer::DocumentOnLoadCompletedInPrimaryMainFrame() { … }