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

Unified Diff: third_party/WebKit/Source/platform/exported/WebURLResponse.cpp

Issue 2516353002: Introduce url_list to the Response scheme of CacheStorage. (Closed)
Patch Set: implicit conversion WebURL <-> GURL and WebVector <- vector Created 4 years 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/exported/WebURLResponse.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebURLResponse.cpp b/third_party/WebKit/Source/platform/exported/WebURLResponse.cpp
index a0f21c8e41034df0eee161448d2e4e2f586f05a0..9d517da2de4e3635fb168fbd4b9bbcec672edfae 100644
--- a/third_party/WebKit/Source/platform/exported/WebURLResponse.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebURLResponse.cpp
@@ -279,10 +279,11 @@ void WebURLResponse::setSecurityStyle(WebSecurityStyle securityStyle) {
void WebURLResponse::setSecurityDetails(
const WebSecurityDetails& webSecurityDetails) {
- blink::ResourceResponse::SignedCertificateTimestampList sctList;
- for (const auto& iter : webSecurityDetails.sctList)
+ ResourceResponse::SignedCertificateTimestampList sctList;
+ for (const auto& iter : webSecurityDetails.sctList) {
sctList.append(
- static_cast<blink::ResourceResponse::SignedCertificateTimestamp>(iter));
+ static_cast<ResourceResponse::SignedCertificateTimestamp>(iter));
+ }
Vector<String> sanList;
sanList.append(webSecurityDetails.sanList.data(),
webSecurityDetails.sanList.size());
@@ -373,12 +374,16 @@ void WebURLResponse::setServiceWorkerResponseType(
m_resourceResponse->setServiceWorkerResponseType(value);
}
-WebURL WebURLResponse::originalURLViaServiceWorker() const {
- return m_resourceResponse->originalURLViaServiceWorker();
+void WebURLResponse::setURLListViaServiceWorker(
+ const WebVector<WebURL>& urlListViaServiceWorker) {
+ Vector<KURL> urlList(urlListViaServiceWorker.size());
+ std::transform(urlListViaServiceWorker.begin(), urlListViaServiceWorker.end(),
+ urlList.begin(), [](const WebURL& url) { return url; });
+ m_resourceResponse->setURLListViaServiceWorker(urlList);
}
-void WebURLResponse::setOriginalURLViaServiceWorker(const WebURL& url) {
- m_resourceResponse->setOriginalURLViaServiceWorker(url);
+WebURL WebURLResponse::originalURLViaServiceWorker() const {
+ return m_resourceResponse->originalURLViaServiceWorker();
}
void WebURLResponse::setMultipartBoundary(const char* bytes, size_t size) {

Powered by Google App Engine
This is Rietveld 408576698