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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.h

Issue 2429063002: Implement nextHopProtocol in PerformanceResourceTiming and PerformanceNavigationTiming.
Patch Set: included changes for navigation timing Created 3 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/loader/fetch/ResourceResponse.h
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.h b/third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.h
index f2cc0373c48282dea11f55163c555ef2cb7943a7..9a5cf20750d12ab0245b94eff75b574792603cf1 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.h
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.h
@@ -330,6 +330,12 @@ class PLATFORM_EXPORT ResourceResponse final {
m_remoteIPAddress = value;
}
+ const AtomicString& alpnNegotiatedProtocol() const;
+ void setALPNNegotiatedProtocol(const AtomicString& value);
+
+ const AtomicString& connectionInfo() const;
+ void setConnectionInfo(const AtomicString& value);
+
unsigned short remotePort() const { return m_remotePort; }
void setRemotePort(unsigned short value) { m_remotePort = value; }
@@ -466,6 +472,12 @@ class PLATFORM_EXPORT ResourceResponse final {
// Remote IP address of the socket which fetched this resource.
AtomicString m_remoteIPAddress;
+ // ALPN negotiated protocol of the socket which fetched this resource.
+ AtomicString m_alpnNegotiatedProtocol;
+
+ // Information about the type of connection used to fetch this resource.
+ AtomicString m_connectionInfo;
+
// Remote port number of the socket which fetched this resource.
unsigned short m_remotePort;
@@ -536,6 +548,8 @@ struct CrossThreadResourceResponseData {
bool m_didServiceWorkerNavigationPreload;
int64_t m_responseTime;
String m_remoteIPAddress;
+ String m_alpnNegotiatedProtocol;
+ String m_connectionInfo;
unsigned short m_remotePort;
long long m_encodedDataLength;
long long m_encodedBodyLength;

Powered by Google App Engine
This is Rietveld 408576698