OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_TOOLS_FLIP_SERVER_STRING_PIECE_UTILS_H_ | 5 #ifndef NET_TOOLS_BALSA_STRING_PIECE_UTILS_H_ |
6 #define NET_TOOLS_FLIP_SERVER_STRING_PIECE_UTILS_H_ | 6 #define NET_TOOLS_BALSA_STRING_PIECE_UTILS_H_ |
7 | 7 |
8 #include <ctype.h> | 8 #include <ctype.h> |
9 | 9 |
10 #include "base/port.h" | 10 #include "base/port.h" |
11 #include "base/strings/string_piece.h" | 11 #include "base/strings/string_piece.h" |
12 | 12 |
13 namespace net { | 13 namespace net { |
14 | 14 |
15 struct StringPieceCaseHash { | 15 struct StringPieceCaseHash { |
16 size_t operator()(const base::StringPiece& sp) const { | 16 size_t operator()(const base::StringPiece& sp) const { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 bool operator()(const base::StringPiece& piece1, | 72 bool operator()(const base::StringPiece& piece1, |
73 const base::StringPiece& piece2) const { | 73 const base::StringPiece& piece2) const { |
74 return StringPieceUtils::EqualIgnoreCase(piece1, piece2); | 74 return StringPieceUtils::EqualIgnoreCase(piece1, piece2); |
75 } | 75 } |
76 }; | 76 }; |
77 | 77 |
78 | 78 |
79 | 79 |
80 } // namespace net | 80 } // namespace net |
81 | 81 |
82 #endif // NET_TOOLS_FLIP_SERVER_STRING_PIECE_UTILS_H_ | 82 #endif // NET_TOOLS_BALSA_STRING_PIECE_UTILS_H_ |
83 | 83 |
OLD | NEW |