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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 218 |
219 // The type of the response which was fetched by the ServiceWorker. | 219 // The type of the response which was fetched by the ServiceWorker. |
220 BLINK_PLATFORM_EXPORT WebServiceWorkerResponseType serviceWorkerResponseType
() const; | 220 BLINK_PLATFORM_EXPORT WebServiceWorkerResponseType serviceWorkerResponseType
() const; |
221 BLINK_PLATFORM_EXPORT void setServiceWorkerResponseType(WebServiceWorkerResp
onseType); | 221 BLINK_PLATFORM_EXPORT void setServiceWorkerResponseType(WebServiceWorkerResp
onseType); |
222 | 222 |
223 // The original URL of the response which was fetched by the ServiceWorker. | 223 // The original URL of the response which was fetched by the ServiceWorker. |
224 // This may be empty if the response was created inside the ServiceWorker. | 224 // This may be empty if the response was created inside the ServiceWorker. |
225 BLINK_PLATFORM_EXPORT WebURL originalURLViaServiceWorker() const; | 225 BLINK_PLATFORM_EXPORT WebURL originalURLViaServiceWorker() const; |
226 BLINK_PLATFORM_EXPORT void setOriginalURLViaServiceWorker(const WebURL&); | 226 BLINK_PLATFORM_EXPORT void setOriginalURLViaServiceWorker(const WebURL&); |
227 | 227 |
228 // Flag whether this request is part of a multipart response. | |
229 BLINK_PLATFORM_EXPORT bool isMultipartPayload() const; | |
230 BLINK_PLATFORM_EXPORT void setIsMultipartPayload(bool); | |
231 | |
232 // The boundary of the response. Set only when this is a multipart response. | 228 // The boundary of the response. Set only when this is a multipart response. |
233 BLINK_PLATFORM_EXPORT void setMultipartBoundary(const char* bytes, size_t /*
size */); | 229 BLINK_PLATFORM_EXPORT void setMultipartBoundary(const char* bytes, size_t /*
size */); |
234 | 230 |
235 // This indicates the location of a downloaded response if the | 231 // This indicates the location of a downloaded response if the |
236 // WebURLRequest had the downloadToFile flag set to true. This file path | 232 // WebURLRequest had the downloadToFile flag set to true. This file path |
237 // remains valid for the lifetime of the WebURLLoader used to create it. | 233 // remains valid for the lifetime of the WebURLLoader used to create it. |
238 BLINK_PLATFORM_EXPORT WebString downloadFilePath() const; | 234 BLINK_PLATFORM_EXPORT WebString downloadFilePath() const; |
239 BLINK_PLATFORM_EXPORT void setDownloadFilePath(const WebString&); | 235 BLINK_PLATFORM_EXPORT void setDownloadFilePath(const WebString&); |
240 | 236 |
241 // Remote IP address of the socket which fetched this resource. | 237 // Remote IP address of the socket which fetched this resource. |
(...skipping 16 matching lines...) Expand all Loading... |
258 protected: | 254 protected: |
259 BLINK_PLATFORM_EXPORT void assign(WebURLResponsePrivate*); | 255 BLINK_PLATFORM_EXPORT void assign(WebURLResponsePrivate*); |
260 | 256 |
261 private: | 257 private: |
262 WebURLResponsePrivate* m_private; | 258 WebURLResponsePrivate* m_private; |
263 }; | 259 }; |
264 | 260 |
265 } // namespace blink | 261 } // namespace blink |
266 | 262 |
267 #endif | 263 #endif |
OLD | NEW |