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

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

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.cpp
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.cpp b/third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.cpp
index ff94534708aa30acb2cff7c44414da04d991bea6..ae852e1fb59ed829239d1fc8f6c03b5fb494f04a 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()
last_modified_(0.0),
app_cache_id_(0),
response_time_(0),
+ connection_info_(
+ net::HttpResponseInfo::ConnectionInfo::CONNECTION_INFO_UNKNOWN),
encoded_data_length_(0),
encoded_body_length_(0),
decoded_body_length_(0) {}
@@ -572,6 +574,14 @@ KURL ResourceResponse::OriginalURLViaServiceWorker() const {
return url_list_via_service_worker_.back();
}
+AtomicString ResourceResponse::ConnectionInfoString() const {
+ std::string connection_info_string =
+ net::HttpResponseInfo::ConnectionInfoToString(connection_info_);
+ return AtomicString(
+ reinterpret_cast<const LChar*>(connection_info_string.data()),
+ connection_info_string.length());
+}
+
void ResourceResponse::SetEncodedDataLength(long long value) {
encoded_data_length_ = value;
}
« no previous file with comments | « third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.h ('k') | third_party/WebKit/public/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698