Index: third_party/WebKit/Source/platform/network/ResourceLoadTiming.cpp |
diff --git a/third_party/WebKit/Source/platform/network/ResourceLoadTiming.cpp b/third_party/WebKit/Source/platform/network/ResourceLoadTiming.cpp |
index 4dabcad37913f1d09843e806f9a1e60c7da246f0..41f97e99b41172aa240cc0cdf1e0ad02b9535857 100644 |
--- a/third_party/WebKit/Source/platform/network/ResourceLoadTiming.cpp |
+++ b/third_party/WebKit/Source/platform/network/ResourceLoadTiming.cpp |
@@ -23,6 +23,8 @@ ResourceLoadTiming::ResourceLoadTiming() |
, m_receiveHeadersEnd(0) |
, m_sslStart(0) |
, m_sslEnd(0) |
+ , m_pushStart(0) |
+ , m_pushEnd(0) |
{ |
} |
@@ -48,6 +50,8 @@ PassRefPtr<ResourceLoadTiming> ResourceLoadTiming::deepCopy() |
timing->m_receiveHeadersEnd = m_receiveHeadersEnd; |
timing->m_sslStart = m_sslStart; |
timing->m_sslEnd = m_sslEnd; |
+ timing->m_pushStart = m_pushStart; |
+ timing->m_pushEnd = m_pushEnd; |
return timing.release(); |
} |
@@ -66,7 +70,9 @@ bool ResourceLoadTiming::operator==(const ResourceLoadTiming& other) const |
&& m_sendEnd == other.m_sendEnd |
&& m_receiveHeadersEnd == other.m_receiveHeadersEnd |
&& m_sslStart == other.m_sslStart |
- && m_sslEnd == other.m_sslEnd; |
+ && m_sslEnd == other.m_sslEnd |
+ && m_pushStart == other.m_pushStart |
+ && m_pushEnd == other.m_pushEnd; |
} |
bool ResourceLoadTiming::operator!=(const ResourceLoadTiming& other) const |
@@ -145,6 +151,16 @@ void ResourceLoadTiming::setSslEnd(double sslEnd) |
m_sslEnd = sslEnd; |
} |
+void ResourceLoadTiming::setPushStart(double pushStart) |
+{ |
+ m_pushStart = pushStart; |
+} |
+ |
+void ResourceLoadTiming::setPushEnd(double pushEnd) |
+{ |
+ m_pushEnd = pushEnd; |
+} |
+ |
double ResourceLoadTiming::calculateMillisecondDelta(double time) const |
{ |
return time ? (time - m_requestTime) * 1000 : -1; |