chromium/chromeos/ash/services/secure_channel/public/cpp/shared/connection_medium.h

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

#ifndef CHROMEOS_ASH_SERVICES_SECURE_CHANNEL_PUBLIC_CPP_SHARED_CONNECTION_MEDIUM_H_
#define CHROMEOS_ASH_SERVICES_SECURE_CHANNEL_PUBLIC_CPP_SHARED_CONNECTION_MEDIUM_H_

#include <ostream>

namespace ash::secure_channel {

// Enumeration of all mediums through which connections can be created.
enum class ConnectionMedium {
  // Uses BLE to create a GATT connection
  kBluetoothLowEnergy,

  // Uses the Nearby Connections library to connect over Bluetooth Classic, then
  // upgrade the connection to WebRTC for higher bandwidth.
  kNearbyConnections
};

std::ostream& operator<<(std::ostream& stream, const ConnectionMedium& medium);

}  // namespace ash::secure_channel

#endif  // CHROMEOS_ASH_SERVICES_SECURE_CHANNEL_PUBLIC_CPP_SHARED_CONNECTION_MEDIUM_H_