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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 1965013002: Implement headers attributes in ForeignFetchResponse (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: using instead of typedef Created 4 years, 7 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 cf47c4fedca531c858a37319a37e9ef28da01743..56921108fc991a138215062a62483655452304b6 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -955,6 +955,13 @@ void WebURLLoaderImpl::PopulateURLResponse(const GURL& url,
info.is_in_cache_storage
? blink::WebString::fromUTF8(info.cache_storage_cache_name)
: blink::WebString());
+ blink::WebVector<blink::WebString> cors_exposed_header_names(
+ info.cors_exposed_header_names.size());
+ std::transform(
+ info.cors_exposed_header_names.begin(),
+ info.cors_exposed_header_names.end(), cors_exposed_header_names.begin(),
+ [](const std::string& h) { return blink::WebString::fromLatin1(h); });
+ response->setCorsExposedHeaderNames(cors_exposed_header_names);
SetSecurityStyleAndDetails(url, info.security_info, response,
report_security_info);
« no previous file with comments | « content/browser/service_worker/service_worker_url_request_job_unittest.cc ('k') | content/common/resource_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698