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

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

Issue 1710733002: Move multipart resource handling to core/fetch (2/2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@multipart-cleanup
Patch Set: Created 4 years, 9 months 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
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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 228 // The boundary of the response. Set only when this is a multipart response.
229 BLINK_PLATFORM_EXPORT bool isMultipartPayload() const; 229 BLINK_PLATFORM_EXPORT void setMultipartBoundary(const char* bytes, size_t /* size */);
230 BLINK_PLATFORM_EXPORT void setIsMultipartPayload(bool);
231 230
232 // This indicates the location of a downloaded response if the 231 // This indicates the location of a downloaded response if the
233 // WebURLRequest had the downloadToFile flag set to true. This file path 232 // WebURLRequest had the downloadToFile flag set to true. This file path
234 // 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.
235 BLINK_PLATFORM_EXPORT WebString downloadFilePath() const; 234 BLINK_PLATFORM_EXPORT WebString downloadFilePath() const;
236 BLINK_PLATFORM_EXPORT void setDownloadFilePath(const WebString&); 235 BLINK_PLATFORM_EXPORT void setDownloadFilePath(const WebString&);
237 236
238 // Remote IP address of the socket which fetched this resource. 237 // Remote IP address of the socket which fetched this resource.
239 BLINK_PLATFORM_EXPORT WebString remoteIPAddress() const; 238 BLINK_PLATFORM_EXPORT WebString remoteIPAddress() const;
240 BLINK_PLATFORM_EXPORT void setRemoteIPAddress(const WebString&); 239 BLINK_PLATFORM_EXPORT void setRemoteIPAddress(const WebString&);
(...skipping 14 matching lines...) Expand all
255 protected: 254 protected:
256 BLINK_PLATFORM_EXPORT void assign(WebURLResponsePrivate*); 255 BLINK_PLATFORM_EXPORT void assign(WebURLResponsePrivate*);
257 256
258 private: 257 private:
259 WebURLResponsePrivate* m_private; 258 WebURLResponsePrivate* m_private;
260 }; 259 };
261 260
262 } // namespace blink 261 } // namespace blink
263 262
264 #endif 263 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698