OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // Utility class that performs basic operations on header value tokens: parsing | 5 // Utility class that performs basic operations on header value tokens: parsing |
6 // them out, checking for presense of certain tokens, and removing them. | 6 // them out, checking for presense of certain tokens, and removing them. |
7 | 7 |
8 #ifndef NET_TOOLS_FLIP_SERVER_BALSA_HEADERS_TOKEN_UTILS_H_ | 8 #ifndef NET_TOOLS_FLIP_SERVER_BALSA_HEADERS_TOKEN_UTILS_H_ |
9 #define NET_TOOLS_FLIP_SERVER_BALSA_HEADERS_TOKEN_UTILS_H_ | 9 #define NET_TOOLS_FLIP_SERVER_BALSA_HEADERS_TOKEN_UTILS_H_ |
10 | 10 |
| 11 #include "base/strings/string_piece.h" |
11 #include "net/tools/flip_server/balsa_headers.h" | 12 #include "net/tools/flip_server/balsa_headers.h" |
12 #include "base/string_piece.h" | |
13 | 13 |
14 namespace net { | 14 namespace net { |
15 | 15 |
16 class BalsaHeadersTokenUtils { | 16 class BalsaHeadersTokenUtils { |
17 public: | 17 public: |
18 // All the functions below respect multiple header lines with the same key. | 18 // All the functions below respect multiple header lines with the same key. |
19 | 19 |
20 // Checks whether the last header token matches a given value. Useful to | 20 // Checks whether the last header token matches a given value. Useful to |
21 // check the outer-most content or transfer-encoding, for example. In the | 21 // check the outer-most content or transfer-encoding, for example. In the |
22 // presence of multiple header lines with given key, the last token of the | 22 // presence of multiple header lines with given key, the last token of the |
(...skipping 29 matching lines...) Expand all Loading... |
52 const BalsaHeaders::HeaderLineDescription& line, | 52 const BalsaHeaders::HeaderLineDescription& line, |
53 BalsaHeaders::HeaderTokenList* tokens); | 53 BalsaHeaders::HeaderTokenList* tokens); |
54 | 54 |
55 BalsaHeadersTokenUtils(); // Prohibit instantiation | 55 BalsaHeadersTokenUtils(); // Prohibit instantiation |
56 }; | 56 }; |
57 | 57 |
58 } // namespace net | 58 } // namespace net |
59 | 59 |
60 #endif // NET_TOOLS_FLIP_SERVER_BALSA_HEADERS_TOKEN_UTILS_H_ | 60 #endif // NET_TOOLS_FLIP_SERVER_BALSA_HEADERS_TOKEN_UTILS_H_ |
61 | 61 |
OLD | NEW |