diff options
Diffstat (limited to 'chromium/net/quic/quic_utils_chromium.cc')
-rw-r--r-- | chromium/net/quic/quic_utils_chromium.cc | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/chromium/net/quic/quic_utils_chromium.cc b/chromium/net/quic/quic_utils_chromium.cc deleted file mode 100644 index 90e08fcfa11..00000000000 --- a/chromium/net/quic/quic_utils_chromium.cc +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2016 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. - -#include "net/quic/quic_utils_chromium.h" - -#include "base/containers/adapters.h" -#include "base/strings/string_split.h" -#include "net/third_party/quiche/src/common/platform/api/quiche_string_piece.h" - -namespace net { - -quic::QuicTagVector ParseQuicConnectionOptions( - const std::string& connection_options) { - quic::QuicTagVector options; - // Tokens are expected to be no more than 4 characters long, but - // handle overflow gracefully. - for (const quiche::QuicheStringPiece& token : - base::SplitStringPiece(connection_options, ",", base::TRIM_WHITESPACE, - base::SPLIT_WANT_ALL)) { - uint32_t option = 0; - for (char token_char : base::Reversed(token)) { - option <<= 8; - option |= static_cast<unsigned char>(token_char); - } - options.push_back(option); - } - return options; -} - -} // namespace net |