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

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

Issue 2429063002: Implement nextHopProtocol in PerformanceResourceTiming and PerformanceNavigationTiming.
Patch Set: Added core_export for PerformanceResourceTiming 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..7e075ffa0d4670a5268142c43988f319766f1fa0 100644
--- a/third_party/WebKit/Source/platform/network/ResourceResponse.h
+++ b/third_party/WebKit/Source/platform/network/ResourceResponse.h
@@ -322,6 +322,18 @@ class PLATFORM_EXPORT ResourceResponse final {
m_remoteIPAddress = value;
}
+ const AtomicString& alpnNegotiatedProtocol() const {
+ return m_alpnNegotiatedProtocol;
+ }
+ void setALPNNegotiatedProtocol(const AtomicString& value) {
+ m_alpnNegotiatedProtocol = value;
+ }
+
+ const AtomicString& connectionInfo() const { return m_connectionInfo; }
+ void setConnectionInfo(const AtomicString& value) {
+ m_connectionInfo = value;
+ }
+
unsigned short remotePort() const { return m_remotePort; }
void setRemotePort(unsigned short value) { m_remotePort = value; }
@@ -465,6 +477,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;
@@ -538,6 +556,8 @@ struct CrossThreadResourceResponseData {
String m_cacheStorageCacheName;
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