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

Unified Diff: third_party/WebKit/Source/modules/fetch/FetchHeaderList.h

Issue 2542073005: Sort headers for iteration (Closed)
Patch Set: Rebased Created 4 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: third_party/WebKit/Source/modules/fetch/FetchHeaderList.h
diff --git a/third_party/WebKit/Source/modules/fetch/FetchHeaderList.h b/third_party/WebKit/Source/modules/fetch/FetchHeaderList.h
index f56c19f689f0f2f03d537ff3d42810dde173499b..bfe552f483edeb89a46e88b229c023bc1febd9a4 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchHeaderList.h
+++ b/third_party/WebKit/Source/modules/fetch/FetchHeaderList.h
@@ -23,7 +23,7 @@ class MODULES_EXPORT FetchHeaderList final
public:
typedef std::pair<String, String> Header;
static FetchHeaderList* create();
- FetchHeaderList* clone();
+ FetchHeaderList* clone() const;
~FetchHeaderList();
void append(const String&, const String&);
@@ -39,6 +39,7 @@ class MODULES_EXPORT FetchHeaderList final
void clearList();
bool containsNonSimpleHeader() const;
+ void sortAndCombine();
const Vector<std::unique_ptr<Header>>& list() const { return m_headerList; }
const Header& entry(size_t index) const {

Powered by Google App Engine
This is Rietveld 408576698