PerformanceResourceTiming::PerformanceResourceTiming(const ResourceTimingInfo& info, double timeOrigin, double startTime, double lastRedirectEndTime, bool allowTimingDetails, bool allowRedirectDetails) : PerformanceEntry(info.initialRequest().url().getString(), "resource", monotonicTimeToDOMHighResTimeStamp(timeOrigin, startTime), monotonicTimeToDOMHighResTimeStamp(timeOrigin, info.loadFinishTime())) , m_initiatorType(info.initiatorType()) , m_timeOrigin(timeOrigin) , m_timing(info.finalResponse().resourceLoadTiming()) , m_lastRedirectEndTime(lastRedirectEndTime) , m_finishTime(info.loadFinishTime()) , m_didReuseConnection(info.finalResponse().connectionReused()) , m_allowTimingDetails(allowTimingDetails) , m_allowRedirectDetails(allowRedirectDetails) { }
PerformanceResourceTiming::PerformanceResourceTiming(const ResourceTimingInfo& info, Document* requestingDocument, double startTime, double lastRedirectEndTime, bool allowTimingDetails, bool allowRedirectDetails) : PerformanceEntry(info.initialRequest().url().string(), "resource", monotonicTimeToDocumentMilliseconds(requestingDocument, startTime), monotonicTimeToDocumentMilliseconds(requestingDocument, info.loadFinishTime())) , m_initiatorType(info.initiatorType()) , m_timing(info.finalResponse().resourceLoadTiming()) , m_lastRedirectEndTime(lastRedirectEndTime) , m_finishTime(info.loadFinishTime()) , m_didReuseConnection(info.finalResponse().connectionReused()) , m_allowTimingDetails(allowTimingDetails) , m_allowRedirectDetails(allowRedirectDetails) , m_requestingDocument(requestingDocument) { }