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

Unified Diff: content/child/web_url_loader_impl.cc

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: content/child/web_url_loader_impl.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index e19bf5fc051e969decc0b37214975d882662f0a3..42eb9bc39fe168668a788480011c10dff523bb29 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -1049,17 +1049,20 @@ void WebURLLoaderImpl::PopulateURLResponse(const GURL& url,
[](const std::string& h) { return blink::WebString::fromLatin1(h); });
response->setCorsExposedHeaderNames(cors_exposed_header_names);
response->addToEncodedDataLength(info.encoded_data_length);
+ response->setALPNNegotiatedProtocol(
+ WebString::fromUTF8(info.alpn_negotiated_protocol));
+ response->setConnectionInfo(WebString::fromUTF8(
+ net::HttpResponseInfo::ConnectionInfoToString(info.connection_info)));
SetSecurityStyleAndDetails(url, info, response, report_security_info);
- WebURLResponseExtraDataImpl* extra_data =
- new WebURLResponseExtraDataImpl(info.alpn_negotiated_protocol);
+ WebURLResponseExtraDataImpl* extra_data = new WebURLResponseExtraDataImpl();
response->setExtraData(extra_data);
+
extra_data->set_was_fetched_via_spdy(info.was_fetched_via_spdy);
extra_data->set_was_alpn_negotiated(info.was_alpn_negotiated);
extra_data->set_was_alternate_protocol_available(
info.was_alternate_protocol_available);
- extra_data->set_connection_info(info.connection_info);
extra_data->set_is_using_lofi(info.is_using_lofi);
extra_data->set_effective_connection_type(info.effective_connection_type);

Powered by Google App Engine
This is Rietveld 408576698