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

Side by Side Diff: public/platform/WebURLResponse.h

Issue 732963003: Use the request URL as the URL of the resources which are fetched ServiceWorker [1/3 blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « Source/platform/network/ResourceResponse.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 // Flag whether the fallback request with skip service worker flag was 171 // Flag whether the fallback request with skip service worker flag was
172 // required. 172 // required.
173 BLINK_PLATFORM_EXPORT bool wasFallbackRequiredByServiceWorker() const; 173 BLINK_PLATFORM_EXPORT bool wasFallbackRequiredByServiceWorker() const;
174 BLINK_PLATFORM_EXPORT void setWasFallbackRequiredByServiceWorker(bool); 174 BLINK_PLATFORM_EXPORT void setWasFallbackRequiredByServiceWorker(bool);
175 175
176 // The type of the response which was fetched by the ServiceWorker. 176 // The type of the response which was fetched by the ServiceWorker.
177 BLINK_PLATFORM_EXPORT WebServiceWorkerResponseType serviceWorkerResponseType () const; 177 BLINK_PLATFORM_EXPORT WebServiceWorkerResponseType serviceWorkerResponseType () const;
178 BLINK_PLATFORM_EXPORT void setServiceWorkerResponseType(WebServiceWorkerResp onseType); 178 BLINK_PLATFORM_EXPORT void setServiceWorkerResponseType(WebServiceWorkerResp onseType);
179 179
180 // The original URL of the response which was fetched by the ServiceWorker.
181 // This may be empty if the response was created inside the ServiceWorker.
182 BLINK_PLATFORM_EXPORT WebURL originalURLViaServiceWorker() const;
183 BLINK_PLATFORM_EXPORT void setOriginalURLViaServiceWorker(const WebURL&);
184
180 // Flag whether this request is part of a multipart response. 185 // Flag whether this request is part of a multipart response.
181 BLINK_PLATFORM_EXPORT bool isMultipartPayload() const; 186 BLINK_PLATFORM_EXPORT bool isMultipartPayload() const;
182 BLINK_PLATFORM_EXPORT void setIsMultipartPayload(bool); 187 BLINK_PLATFORM_EXPORT void setIsMultipartPayload(bool);
183 188
184 // This indicates the location of a downloaded response if the 189 // This indicates the location of a downloaded response if the
185 // WebURLRequest had the downloadToFile flag set to true. This file path 190 // WebURLRequest had the downloadToFile flag set to true. This file path
186 // remains valid for the lifetime of the WebURLLoader used to create it. 191 // remains valid for the lifetime of the WebURLLoader used to create it.
187 BLINK_PLATFORM_EXPORT WebString downloadFilePath() const; 192 BLINK_PLATFORM_EXPORT WebString downloadFilePath() const;
188 BLINK_PLATFORM_EXPORT void setDownloadFilePath(const WebString&); 193 BLINK_PLATFORM_EXPORT void setDownloadFilePath(const WebString&);
189 194
(...skipping 17 matching lines...) Expand all
207 protected: 212 protected:
208 BLINK_PLATFORM_EXPORT void assign(WebURLResponsePrivate*); 213 BLINK_PLATFORM_EXPORT void assign(WebURLResponsePrivate*);
209 214
210 private: 215 private:
211 WebURLResponsePrivate* m_private; 216 WebURLResponsePrivate* m_private;
212 }; 217 };
213 218
214 } // namespace blink 219 } // namespace blink
215 220
216 #endif 221 #endif
OLDNEW
« no previous file with comments | « Source/platform/network/ResourceResponse.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698