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

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

Issue 2516353002: Introduce url_list to the Response scheme of CacheStorage. (Closed)
Patch Set: Created 4 years, 1 month 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..e6433ce8d637911dccb6b679e4e5267d3aceeb53 100644
--- a/third_party/WebKit/Source/platform/exported/WebURLResponse.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebURLResponse.cpp
@@ -373,12 +373,16 @@ void WebURLResponse::setServiceWorkerResponseType(
m_resourceResponse->setServiceWorkerResponseType(value);
}
-WebURL WebURLResponse::originalURLViaServiceWorker() const {
- return m_resourceResponse->originalURLViaServiceWorker();
+void WebURLResponse::setURLListViaServiceWorker(
+ const blink::WebVector<blink::WebURL>& urlListViaServiceWorker) {
+ Vector<KURL> urlList(urlListViaServiceWorker.size());
+ std::transform(urlListViaServiceWorker.begin(), urlListViaServiceWorker.end(),
+ urlList.begin(), [](const blink::WebURL& url) { return url; });
+ m_resourceResponse->setURLListViaServiceWorker(urlList);
}
-void WebURLResponse::setOriginalURLViaServiceWorker(const WebURL& url) {
- m_resourceResponse->setOriginalURLViaServiceWorker(url);
+blink::WebURL WebURLResponse::originalURLViaServiceWorker() const {
falken 2016/11/30 14:57:38 Do we need all the blink::'s in the above lines?
horo 2016/12/01 07:42:14 Done.
+ return m_resourceResponse->originalURLViaServiceWorker();
}
void WebURLResponse::setMultipartBoundary(const char* bytes, size_t size) {

Powered by Google App Engine
This is Rietveld 408576698