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

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: rebase Created 4 years, 10 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Flag whether this request is part of a multipart response.
229 BLINK_PLATFORM_EXPORT bool isMultipartPayload() const; 229 BLINK_PLATFORM_EXPORT bool isMultipartPayload() const;
230 BLINK_PLATFORM_EXPORT void setIsMultipartPayload(bool); 230 BLINK_PLATFORM_EXPORT void setIsMultipartPayload(bool);
231 231
232 // 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 */);
234
232 // This indicates the location of a downloaded response if the 235 // This indicates the location of a downloaded response if the
233 // WebURLRequest had the downloadToFile flag set to true. This file path 236 // WebURLRequest had the downloadToFile flag set to true. This file path
234 // remains valid for the lifetime of the WebURLLoader used to create it. 237 // remains valid for the lifetime of the WebURLLoader used to create it.
235 BLINK_PLATFORM_EXPORT WebString downloadFilePath() const; 238 BLINK_PLATFORM_EXPORT WebString downloadFilePath() const;
236 BLINK_PLATFORM_EXPORT void setDownloadFilePath(const WebString&); 239 BLINK_PLATFORM_EXPORT void setDownloadFilePath(const WebString&);
237 240
238 // Remote IP address of the socket which fetched this resource. 241 // Remote IP address of the socket which fetched this resource.
239 BLINK_PLATFORM_EXPORT WebString remoteIPAddress() const; 242 BLINK_PLATFORM_EXPORT WebString remoteIPAddress() const;
240 BLINK_PLATFORM_EXPORT void setRemoteIPAddress(const WebString&); 243 BLINK_PLATFORM_EXPORT void setRemoteIPAddress(const WebString&);
241 244
(...skipping 13 matching lines...) Expand all
255 protected: 258 protected:
256 BLINK_PLATFORM_EXPORT void assign(WebURLResponsePrivate*); 259 BLINK_PLATFORM_EXPORT void assign(WebURLResponsePrivate*);
257 260
258 private: 261 private:
259 WebURLResponsePrivate* m_private; 262 WebURLResponsePrivate* m_private;
260 }; 263 };
261 264
262 } // namespace blink 265 } // namespace blink
263 266
264 #endif 267 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698