summaryrefslogtreecommitdiff
path: root/chromium/net/quic/quic_utils_chromium.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-12 14:27:29 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-13 09:35:20 +0000
commitc30a6232df03e1efbd9f3b226777b07e087a1122 (patch)
treee992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/net/quic/quic_utils_chromium.cc
parent7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff)
downloadqtwebengine-chromium-85-based.tar.gz
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/net/quic/quic_utils_chromium.cc')
-rw-r--r--chromium/net/quic/quic_utils_chromium.cc31
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