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

Unified Diff: content/child/web_url_loader_impl.cc

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
« no previous file with comments | « no previous file | content/child/weburlresponse_extradata_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1d7e0db57209bbe57a16a237a9f72a40ad3ed57b..1e4ab807649612d9c9d6d09133879ef7cc5556f0 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -1112,17 +1112,18 @@ 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(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);
« no previous file with comments | « no previous file | content/child/weburlresponse_extradata_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698