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

Unified Diff: third_party/WebKit/Source/platform/network/ResourceResponse.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/network/ResourceResponse.h
diff --git a/third_party/WebKit/Source/platform/network/ResourceResponse.h b/third_party/WebKit/Source/platform/network/ResourceResponse.h
index 5977377b11d2f2a8ed0f703497c7f74e76bd38c4..27c6891b9408886e747c8be7d736f8aebf8882f4 100644
--- a/third_party/WebKit/Source/platform/network/ResourceResponse.h
+++ b/third_party/WebKit/Source/platform/network/ResourceResponse.h
@@ -214,8 +214,12 @@ public:
const KURL& originalURLViaServiceWorker() const { return m_originalURLViaServiceWorker; }
void setOriginalURLViaServiceWorker(const KURL& url) { m_originalURLViaServiceWorker = url; }
- bool isMultipartPayload() const { return m_isMultipartPayload; }
- void setIsMultipartPayload(bool value) { m_isMultipartPayload = value; }
+ const Vector<char>& multipartBoundary() const { return m_multipartBoundary; }
+ void setMultipartBoundary(const char* bytes, size_t size)
+ {
+ m_multipartBoundary.clear();
+ m_multipartBoundary.append(bytes, size);
+ }
int64_t responseTime() const { return m_responseTime; }
void setResponseTime(int64_t responseTime) { m_responseTime = responseTime; }
@@ -305,8 +309,8 @@ private:
// Note: only valid for main resource responses.
KURL m_appCacheManifestURL;
- // Set to true if this is part of a multipart response.
- bool m_isMultipartPayload;
+ // The multipart boundary of this response.
+ Vector<char> m_multipartBoundary;
// Was the resource fetched over SPDY. See http://dev.chromium.org/spdy
bool m_wasFetchedViaSPDY;
@@ -379,7 +383,7 @@ public:
ResourceResponse::HTTPVersion m_httpVersion;
long long m_appCacheID;
KURL m_appCacheManifestURL;
- bool m_isMultipartPayload;
+ Vector<char> m_multipartBoundary;
bool m_wasFetchedViaSPDY;
bool m_wasNpnNegotiated;
bool m_wasAlternateProtocolAvailable;

Powered by Google App Engine
This is Rietveld 408576698