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

Unified Diff: third_party/WebKit/Source/platform/network/ResourceResponse.h

Issue 2429063002: Implement nextHopProtocol in PerformanceResourceTiming and PerformanceNavigationTiming.
Patch Set: Created 4 years, 2 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/ResourceResponse.h
diff --git a/third_party/WebKit/Source/platform/network/ResourceResponse.h b/third_party/WebKit/Source/platform/network/ResourceResponse.h
index 49324615967e23b69f5c00ee4cf26f10d9486fc1..bc5e4df544696fe27e91a4d80db9bd28cc2d92d5 100644
--- a/third_party/WebKit/Source/platform/network/ResourceResponse.h
+++ b/third_party/WebKit/Source/platform/network/ResourceResponse.h
@@ -322,6 +322,13 @@ class PLATFORM_EXPORT ResourceResponse final {
m_remoteIPAddress = value;
}
+ const AtomicString& alpnNegotiatedProtocol() const {
+ return m_alpnNegotiatedProtocol;
+ }
+ void setALPNNegotiatedProtocol(const AtomicString& value) {
+ m_alpnNegotiatedProtocol = value;
+ }
+
unsigned short remotePort() const { return m_remotePort; }
void setRemotePort(unsigned short value) { m_remotePort = value; }
@@ -465,6 +472,9 @@ 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;
+
// Remote port number of the socket which fetched this resource.
unsigned short m_remotePort;
@@ -538,6 +548,7 @@ struct CrossThreadResourceResponseData {
String m_cacheStorageCacheName;
int64_t m_responseTime;
String m_remoteIPAddress;
+ String m_alpnNegotiatedProtocol;
unsigned short m_remotePort;
long long m_encodedDataLength;
long long m_encodedBodyLength;

Powered by Google App Engine
This is Rietveld 408576698