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

Unified Diff: Source/modules/serviceworkers/Request.cpp

Issue 708703002: Service Worker: Cache.put() consumes request/response bodies (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use Response bodies too, but only Request bodies if non-empty Created 6 years, 1 month 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: Source/modules/serviceworkers/Request.cpp
diff --git a/Source/modules/serviceworkers/Request.cpp b/Source/modules/serviceworkers/Request.cpp
index fd334f28b7d09a581ef80e95d3275c13f71354a2..b3c5b3aac916104b604ee1937546c2a6bda3ab57 100644
--- a/Source/modules/serviceworkers/Request.cpp
+++ b/Source/modules/serviceworkers/Request.cpp
@@ -319,6 +319,11 @@ void Request::setBodyBlobHandle(PassRefPtr<BlobDataHandle> blobDataHandle)
m_request->setBlobDataHandle(blobDataHandle);
}
+bool Request::hasBody() const
+{
+ return m_request->blobDataHandle();
+}
+
void Request::clearHeaderList()
{
m_request->headerList()->clearList();
« Source/modules/serviceworkers/Cache.cpp ('K') | « Source/modules/serviceworkers/Request.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698