Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Unified Diff: third_party/WebKit/Source/platform/network/ResourceLoadTiming.cpp

Issue 1828203005: Expose SPDY pushes in DevTools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed tests Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « third_party/WebKit/Source/platform/network/ResourceLoadTiming.h ('k') | third_party/WebKit/public/platform/WebURLLoadTiming.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698