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

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

Issue 2932003002: Implement nextHopProtocol in PerformanceResourceTiming and PerformanceNavigationTiming. (Closed)
Patch Set: Do not default to http/1.1; add github issue reference 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.cpp
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.cpp b/third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.cpp
index b7bd359cf3fdf37b8ccbf6fe5b74d7c36de16040..3204e5137158bbb8de2ac5b70a9d0bb16a6ff67d 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.cpp
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.cpp
@@ -101,6 +101,8 @@ ResourceResponse::ResourceResponse()
did_service_worker_navigation_preload_(false),
response_time_(0),
remote_port_(0),
+ connection_info_(
+ net::HttpResponseInfo::ConnectionInfo::CONNECTION_INFO_UNKNOWN),
encoded_data_length_(0),
encoded_body_length_(0),
decoded_body_length_(0) {}
@@ -573,6 +575,13 @@ KURL ResourceResponse::OriginalURLViaServiceWorker() const {
return url_list_via_service_worker_.back();
}
+String ResourceResponse::ConnectionInfoString() const {
+ std::string connection_info_string =
+ net::HttpResponseInfo::ConnectionInfoToString(connection_info_);
+ return String::FromUTF8(connection_info_string.c_str(),
+ connection_info_string.size());
+}
+
void ResourceResponse::SetEncodedDataLength(long long value) {
encoded_data_length_ = value;
}

Powered by Google App Engine
This is Rietveld 408576698