OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |