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

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

Issue 399543002: [ServiceWorker] Make fetch() method better conformance with the spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated falken's comment Created 6 years, 5 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
« no previous file with comments | « Source/modules/serviceworkers/FetchHeaderList.h ('k') | Source/modules/serviceworkers/FetchManager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/FetchHeaderList.cpp
diff --git a/Source/modules/serviceworkers/FetchHeaderList.cpp b/Source/modules/serviceworkers/FetchHeaderList.cpp
index d3868d70bc84d9796dd738d39cc154f2e23422af..f47dd284df54606c7dc484df9563600714ec55b5 100644
--- a/Source/modules/serviceworkers/FetchHeaderList.cpp
+++ b/Source/modules/serviceworkers/FetchHeaderList.cpp
@@ -121,6 +121,15 @@ void FetchHeaderList::clearList()
m_headerList.clear();
}
+bool FetchHeaderList::containsNonSimpleHeader() const
+{
+ for (size_t i = 0; i < m_headerList.size(); ++i) {
+ if (!isSimpleHeader(m_headerList[i]->first, m_headerList[i]->second))
+ return true;
+ }
+ return false;
+}
+
bool FetchHeaderList::isValidHeaderName(const String& name)
{
// "A name is a case-insensitive byte sequence that matches the field-name
« no previous file with comments | « Source/modules/serviceworkers/FetchHeaderList.h ('k') | Source/modules/serviceworkers/FetchManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698