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

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

Issue 333423004: moved to https://codereview.chromium.org/399543002/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase 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 38e1ebbc44187718190034aaf3c9728118ef2a8e..754ef601d2fae51ba4f61808f256e9d97003363b 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