chromium/chrome/browser/serial/serial_blocklist.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/serial/serial_blocklist.h"

#include <algorithm>
#include <string>
#include <string_view>
#include <tuple>

#include "base/metrics/field_trial_params.h"
#include "base/no_destructor.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "services/device/public/cpp/bluetooth/bluetooth_utils.h"
#include "services/device/public/mojom/serial.mojom.h"

namespace {

const char kEntryKeyUsb[] =;
const char kEntryKeyBluetooth[] =;
const char kBluetoothStandardUUID[] =;

// Returns true if the passed string is exactly 4 digits long and only contains
// valid hexadecimal characters (no leading 0x).
bool IsHexComponent(std::string_view string) {}

bool CompareEntry(const SerialBlocklist::Entry& a,
                  const SerialBlocklist::Entry& b) {}

// Returns true if an entry in [begin, end) matches |entry|.
template <class Iterator>
bool EntryMatches(Iterator begin,
                  Iterator end,
                  const SerialBlocklist::Entry& entry) {}

}  // namespace

BASE_FEATURE();

constexpr base::FeatureParam<std::string> kWebSerialBlocklistAdditions{};

SerialBlocklist::~SerialBlocklist() = default;

// static
SerialBlocklist& SerialBlocklist::Get() {}

bool SerialBlocklist::IsExcluded(
    const device::mojom::SerialPortInfo& port_info) const {}

void SerialBlocklist::ResetToDefaultValuesForTesting() {}

SerialBlocklist::SerialBlocklist() {}

void SerialBlocklist::PopulateWithServerProvidedValues() {}