Internal change

PiperOrigin-RevId: 367677653
This commit is contained in:
hai007
2021-04-09 12:05:00 -07:00
committed by Copybara-Service
parent d4d2d9fc74
commit 90031cd915
3 changed files with 66 additions and 66 deletions
+5 -17
View File
@@ -410,23 +410,6 @@ class BasePcpHandler : public PcpHandler,
void ProcessTieBreakLoss(ClientProxy* client, const std::string& endpoint_id,
PendingConnectionInfo* info);
// Called when an incoming connection has been accepted by both sides.
//
// @param client_proxy The client
// @param endpoint_id The id of the remote device
// @param supported_mediums The mediums supported by the remote device.
// Empty
// for outgoing connections and older devices that don't report their
// supported mediums.
void InitiateBandwidthUpgrade(
ClientProxy* client, const std::string& endpoint_id,
const std::vector<proto::connections::Medium>& supported_mediums);
// Returns the optimal medium supported by both devices.
proto::connections::Medium ChooseBestUpgradeMedium(
const std::vector<proto::connections::Medium>& supported_mediums,
const ConnectionOptions& local_advertising_options);
// Returns true if the bluetooth endpoint based on remote bluetooth mac
// address is created and appended into discovered_endpoints_ with key
// endpoint_id.
@@ -481,6 +464,11 @@ class BasePcpHandler : public PcpHandler,
// Bluetooth classic" (1P).
bool ShouldEnterHighVisibilityMode(const ConnectionOptions& options);
// Returns the intersection of supported mediums based on the mediums reported
// by the remote client and the local client's advertising options.
BooleanMediumSelector ComputeIntersectionOfSupportedMediums(
const PendingConnectionInfo& connection_info);
ScheduledExecutor alarm_executor_;
SingleThreadExecutor serial_executor_;