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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 2429063002: Implement nextHopProtocol in PerformanceResourceTiming and PerformanceNavigationTiming.
Patch Set: included changes for navigation timing Created 3 years, 8 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 3b5126aea04bd0e021f38aba6e4f2318b8745f87..b6bce1038fb0dd886ea61f0a12cf88b29dcc0cb7 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -1077,17 +1077,20 @@ void WebURLLoaderImpl::PopulateURLResponse(const GURL& url,
response->setDidServiceWorkerNavigationPreload(
info.did_service_worker_navigation_preload);
response->setEncodedDataLength(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_previews_state(info.previews_state);
extra_data->set_effective_connection_type(info.effective_connection_type);

Powered by Google App Engine
This is Rietveld 408576698