[Resource Timing] Gather timing information with reliable responseEnd time
[WebKit-https.git] / Source / WebCore / platform / network / ResourceResponseBase.cpp
index d7e7056..92a014c 100644 (file)
@@ -71,7 +71,7 @@ ResourceResponseBase::CrossThreadData ResourceResponseBase::crossThreadData() co
     data.httpVersion = httpVersion().isolatedCopy();
 
     data.httpHeaderFields = httpHeaderFields().isolatedCopy();
-    data.networkLoadTiming = m_networkLoadTiming.isolatedCopy();
+    data.networkLoadMetrics = m_networkLoadMetrics.isolatedCopy();
     data.type = m_type;
     data.isRedirected = m_isRedirected;
 
@@ -92,7 +92,7 @@ ResourceResponse ResourceResponseBase::fromCrossThreadData(CrossThreadData&& dat
     response.setHTTPVersion(data.httpVersion);
 
     response.m_httpHeaderFields = WTFMove(data.httpHeaderFields);
-    response.m_networkLoadTiming = data.networkLoadTiming;
+    response.m_networkLoadMetrics = data.networkLoadMetrics;
     response.m_type = data.type;
     response.m_isRedirected = data.isRedirected;
 
@@ -595,7 +595,7 @@ bool ResourceResponseBase::compare(const ResourceResponse& a, const ResourceResp
         return false;
     if (a.httpHeaderFields() != b.httpHeaderFields())
         return false;
-    if (a.networkLoadTiming() != b.networkLoadTiming())
+    if (a.deprecatedNetworkLoadMetrics() != b.deprecatedNetworkLoadMetrics())
         return false;
     return ResourceResponse::platformCompare(a, b);
 }