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

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

Issue 786893004: [ServiceWorker] Use BodyStreamBuffer as the body data of the Response object. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated yhirano's comment Created 6 years 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/FetchRequestData.cpp
diff --git a/Source/modules/serviceworkers/FetchRequestData.cpp b/Source/modules/serviceworkers/FetchRequestData.cpp
index 6d214f15362cf1cc26f84d4bf32ffbdc8b3a9067..23a136ef82bca405dcc9f7a69d3df9bec105f342 100644
--- a/Source/modules/serviceworkers/FetchRequestData.cpp
+++ b/Source/modules/serviceworkers/FetchRequestData.cpp
@@ -68,6 +68,13 @@ FetchRequestData::FetchRequestData()
{
}
+String FetchRequestData::contentType() const
yhirano 2014/12/12 12:42:33 Is this function's meaning clear? This function is
horo 2014/12/15 02:12:24 Removed and I introduced contentTypeForBuffer to B
+{
+ if (m_blobDataHandle)
+ return m_blobDataHandle->type();
+ return "";
yhirano 2014/12/12 12:42:32 return String() is more efficient.
horo 2014/12/15 02:12:24 Done in Request::contentTypeForBuffer().
+}
+
void FetchRequestData::trace(Visitor* visitor)
{
visitor->trace(m_headerList);

Powered by Google App Engine
This is Rietveld 408576698