#include "third_party/blink/renderer/core/loader/document_load_timing.h"
#include "base/memory/scoped_refptr.h"
#include "base/time/default_clock.h"
#include "base/time/default_tick_clock.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/inspector/identifiers_factory.h"
#include "third_party/blink/renderer/core/loader/document_loader.h"
#include "third_party/blink/renderer/platform/instrumentation/tracing/trace_event.h"
#include "third_party/blink/renderer/platform/weborigin/security_origin.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
namespace blink {
DocumentLoadTiming::DocumentLoadTiming(DocumentLoader& document_loader)
: … { … }
void DocumentLoadTiming::Trace(Visitor* visitor) const { … }
void DocumentLoadTiming::SetTickClockForTesting(
const base::TickClock* tick_clock) { … }
void DocumentLoadTiming::SetClockForTesting(const base::Clock* clock) { … }
LocalFrame* DocumentLoadTiming::GetFrame() const { … }
void DocumentLoadTiming::NotifyDocumentTimingChanged() { … }
void DocumentLoadTiming::EnsureReferenceTimesSet() { … }
base::TimeDelta DocumentLoadTiming::MonotonicTimeToZeroBasedDocumentTime(
base::TimeTicks monotonic_time) const { … }
int64_t DocumentLoadTiming::ZeroBasedDocumentTimeToMonotonicTime(
double dom_event_time) const { … }
base::TimeDelta DocumentLoadTiming::MonotonicTimeToPseudoWallTime(
base::TimeTicks monotonic_time) const { … }
void DocumentLoadTiming::MarkNavigationStart() { … }
void DocumentLoadTiming::WriteNavigationStartDataIntoTracedValue(
perfetto::TracedValue context) const { … }
void DocumentLoadTiming::SetNavigationStart(base::TimeTicks navigation_start) { … }
void DocumentLoadTiming::SetBackForwardCacheRestoreNavigationStart(
base::TimeTicks navigation_start) { … }
void DocumentLoadTiming::SetInputStart(base::TimeTicks input_start) { … }
void DocumentLoadTiming::SetUserTimingMarkFullyLoaded(
base::TimeDelta loaded_time) { … }
void DocumentLoadTiming::SetUserTimingMarkFullyVisible(
base::TimeDelta visible_time) { … }
void DocumentLoadTiming::SetUserTimingMarkInteractive(
base::TimeDelta interactive_time) { … }
void DocumentLoadTiming::NotifyCustomUserTimingMarkAdded(
const AtomicString& mark_name,
const base::TimeDelta& start_time) { … }
void DocumentLoadTiming::AddRedirect(const KURL& redirecting_url,
const KURL& redirected_url) { … }
void DocumentLoadTiming::SetRedirectStart(base::TimeTicks redirect_start) { … }
void DocumentLoadTiming::SetRedirectEnd(base::TimeTicks redirect_end) { … }
void DocumentLoadTiming::SetUnloadEventStart(base::TimeTicks start_time) { … }
void DocumentLoadTiming::SetUnloadEventEnd(base::TimeTicks end_time) { … }
void DocumentLoadTiming::MarkFetchStart() { … }
void DocumentLoadTiming::SetFetchStart(base::TimeTicks fetch_start) { … }
void DocumentLoadTiming::SetResponseEnd(base::TimeTicks response_end) { … }
void DocumentLoadTiming::MarkLoadEventStart() { … }
void DocumentLoadTiming::MarkLoadEventEnd() { … }
void DocumentLoadTiming::MarkRedirectEnd() { … }
void DocumentLoadTiming::MarkCommitNavigationEnd() { … }
void DocumentLoadTiming::SetActivationStart(base::TimeTicks activation_start) { … }
void DocumentLoadTiming::SetCriticalCHRestart(
base::TimeTicks critical_ch_restart) { … }
}