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

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

Issue 2932003002: Implement nextHopProtocol in PerformanceResourceTiming and PerformanceNavigationTiming. (Closed)
Patch Set: Make ConnectionInfoString() return AtomicString 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 811fcef1ed84178485594d383b45d7f8f37b65a3..da5c9ef96993af40570c72b7ea94a4e6eb71b786 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;
+ }
+
+ AtomicString ConnectionInfoString() const;
+
long long EncodedDataLength() const { return encoded_data_length_; }
void SetEncodedDataLength(long long value);
@@ -477,6 +493,12 @@ class PLATFORM_EXPORT ResourceResponse final {
// responses, this time could be "far" in the past.
int64_t response_time_;
+ // 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