diff options
author | Andras Becsi <andras.becsi@digia.com> | 2014-03-18 13:16:26 +0100 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2014-03-20 15:55:39 +0100 |
commit | 3f0f86b0caed75241fa71c95a5d73bc0164348c5 (patch) | |
tree | 92b9fb00f2e9e90b0be2262093876d4f43b6cd13 /chromium/net/tools/flip_server/balsa_headers_token_utils.h | |
parent | e90d7c4b152c56919d963987e2503f9909a666d2 (diff) | |
download | qtwebengine-chromium-3f0f86b0caed75241fa71c95a5d73bc0164348c5.tar.gz |
Update to new stable branch 1750
This also includes an updated ninja and chromium dependencies
needed on Windows.
Change-Id: Icd597d80ed3fa4425933c9f1334c3c2e31291c42
Reviewed-by: Zoltan Arvai <zarvai@inf.u-szeged.hu>
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Diffstat (limited to 'chromium/net/tools/flip_server/balsa_headers_token_utils.h')
-rw-r--r-- | chromium/net/tools/flip_server/balsa_headers_token_utils.h | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/chromium/net/tools/flip_server/balsa_headers_token_utils.h b/chromium/net/tools/flip_server/balsa_headers_token_utils.h deleted file mode 100644 index f50c6065bbd..00000000000 --- a/chromium/net/tools/flip_server/balsa_headers_token_utils.h +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) 2009 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. - -// Utility class that performs basic operations on header value tokens: parsing -// them out, checking for presense of certain tokens, and removing them. - -#ifndef NET_TOOLS_FLIP_SERVER_BALSA_HEADERS_TOKEN_UTILS_H_ -#define NET_TOOLS_FLIP_SERVER_BALSA_HEADERS_TOKEN_UTILS_H_ - -#include "base/strings/string_piece.h" -#include "net/tools/flip_server/balsa_headers.h" - -namespace net { - -class BalsaHeadersTokenUtils { - public: - // All the functions below respect multiple header lines with the same key. - - // Checks whether the last header token matches a given value. Useful to - // check the outer-most content or transfer-encoding, for example. In the - // presence of multiple header lines with given key, the last token of the - // last line is compared. - static bool CheckHeaderForLastToken(const BalsaHeaders& headers, - const base::StringPiece& key, - const base::StringPiece& token); - - // Tokenizes header value for a given key. In the presence of multiple lines - // with that key, all of them will be tokenized and tokens will be added to - // the list in the order in which they are encountered. - static void TokenizeHeaderValue(const BalsaHeaders& headers, - const base::StringPiece& key, - BalsaHeaders::HeaderTokenList* tokens); - - // Removes the last token from the header value. In the presence of multiple - // header lines with given key, will remove the last token of the last line. - // Can be useful if the last encoding has to be removed. - static void RemoveLastTokenFromHeaderValue(const base::StringPiece& key, - BalsaHeaders* headers); - - // Given a pointer to the beginning and the end of the header value - // in some buffer, populates tokens list with beginning and end indices - // of all tokens present in the value string. - static void ParseTokenList(const char* start, - const char* end, - BalsaHeaders::HeaderTokenList* tokens); - - private: - // Helper function to tokenize a header line once we have its description. - static void TokenizeHeaderLine( - const BalsaHeaders& headers, - const BalsaHeaders::HeaderLineDescription& line, - BalsaHeaders::HeaderTokenList* tokens); - - BalsaHeadersTokenUtils(); // Prohibit instantiation -}; - -} // namespace net - -#endif // NET_TOOLS_FLIP_SERVER_BALSA_HEADERS_TOKEN_UTILS_H_ - |