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

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

Issue 2932003002: Implement nextHopProtocol in PerformanceResourceTiming and PerformanceNavigationTiming. (Closed)
Patch Set: Created 3 years, 6 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 33bcae001a7d545f19e2332927361a759edfac36..d0243d0bf562dd03fc7e0a03f6e6525f123ad4e5 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.h
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.h
@@ -341,6 +341,22 @@ class PLATFORM_EXPORT ResourceResponse final {
unsigned short RemotePort() const { return remote_port_; }
void SetRemotePort(unsigned short value) { remote_port_ = value; }
+ const AtomicString& AlpnNegotiatedProtocol() const {
+ return alpn_negotiated_protocol_;
+ }
+ void SetAlpnNegotiatedProtocol(const AtomicString& value) {
+ alpn_negotiated_protocol_ = value;
+ }
+
+ net::HttpResponseInfo::ConnectionInfo ConnectionInfo() const {
+ return connection_info_;
+ }
+ void SetConnectionInfo(net::HttpResponseInfo::ConnectionInfo value) {
+ connection_info_ = value;
+ }
+
+ String ConnectionInfoString() const;
+
long long EncodedDataLength() const { return encoded_data_length_; }
void SetEncodedDataLength(long long value);
@@ -477,6 +493,12 @@ class PLATFORM_EXPORT ResourceResponse final {
// Remote port number of the socket which fetched this resource.
unsigned short remote_port_;
+ // ALPN negotiated protocol of the socket which fetched this resource.
+ AtomicString alpn_negotiated_protocol_;
+
+ // Information about the type of connection used to fetch this resource.
+ net::HttpResponseInfo::ConnectionInfo connection_info_;
+
// Size of the response in bytes prior to decompression.
long long encoded_data_length_;

Powered by Google App Engine
This is Rietveld 408576698