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

Unified Diff: third_party/WebKit/public/platform/WebURLResponse.h

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/public/platform/WebURLResponse.h
diff --git a/third_party/WebKit/public/platform/WebURLResponse.h b/third_party/WebKit/public/platform/WebURLResponse.h
index 52cf1758c03fef33829b28107ee4cd8e540c4276..a9a490f686434e8c686deceb21bcf61ddb75bfde 100644
--- a/third_party/WebKit/public/platform/WebURLResponse.h
+++ b/third_party/WebKit/public/platform/WebURLResponse.h
@@ -249,17 +249,22 @@ class WebURLResponse {
BLINK_PLATFORM_EXPORT bool wasFallbackRequiredByServiceWorker() const;
BLINK_PLATFORM_EXPORT void setWasFallbackRequiredByServiceWorker(bool);
- // The type of the response which was fetched by the ServiceWorker.
+ // The type of the response which was served by the ServiceWorker.
BLINK_PLATFORM_EXPORT WebServiceWorkerResponseType
serviceWorkerResponseType() const;
BLINK_PLATFORM_EXPORT void setServiceWorkerResponseType(
WebServiceWorkerResponseType);
- // The URL of the Response object the ServiceWorker passed to respondWith().
- // See ServiceWorkerResponseInfo::original_url_via_service_worker() for
- // details.
+ // The URL list of the Response object the ServiceWorker passed to
+ // respondWith(). See ServiceWorkerResponseInfo::url_list_via_service_worker()
+ // for details.
+ BLINK_PLATFORM_EXPORT void setURLListViaServiceWorker(
+ const WebVector<WebURL>&);
+
+ // Returns the last URL of the URL list of the Response object the
+ // ServiceWorker passed to respondWith() if it did. Otherwise returns an empty
+ // URL.
BLINK_PLATFORM_EXPORT WebURL originalURLViaServiceWorker() const;
- BLINK_PLATFORM_EXPORT void setOriginalURLViaServiceWorker(const WebURL&);
// The boundary of the response. Set only when this is a multipart response.
BLINK_PLATFORM_EXPORT void setMultipartBoundary(const char* bytes,
@@ -271,7 +276,7 @@ class WebURLResponse {
BLINK_PLATFORM_EXPORT void setCacheStorageCacheName(const WebString&);
// The headers that should be exposed according to CORS. Only guaranteed
- // to be set if the response was fetched by a ServiceWorker.
+ // to be set if the response was served by a ServiceWorker.
BLINK_PLATFORM_EXPORT WebVector<WebString> corsExposedHeaderNames() const;
BLINK_PLATFORM_EXPORT void setCorsExposedHeaderNames(
const WebVector<WebString>&);

Powered by Google App Engine
This is Rietveld 408576698