blob: 80a501f9dad5b3d76d3fefe5b7b9de6036318704 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_NETWORK_HTTP_HEADER_SET_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_NETWORK_HTTP_HEADER_SET_H_
#include <set>
#include <string>
#include "base/strings/string_util.h"
namespace blink {
struct CompareIgnoreCase {
bool operator()(const std::string& left, const std::string& right) const {
return base::CompareCaseInsensitiveASCII(left, right) < 0;
}
};
using HTTPHeaderSet = std::set<std::string, CompareIgnoreCase>;
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_PLATFORM_NETWORK_HTTP_HEADER_SET_H_
|