mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Roll forward up to cl/351408510.
This commit is contained in:
@@ -118,8 +118,7 @@ class BasePcpHandler : public PcpHandler,
|
||||
// otherwise does nothing.
|
||||
void StopDiscovery(ClientProxy* client) override;
|
||||
|
||||
void InjectEndpoint(ClientProxy* client,
|
||||
const std::string& service_id,
|
||||
void InjectEndpoint(ClientProxy* client, const std::string& service_id,
|
||||
const OutOfBandConnectionMetadata& metadata) override;
|
||||
|
||||
// Requests a newly discovered remote endpoint it to form a connection.
|
||||
@@ -280,8 +279,7 @@ class BasePcpHandler : public PcpHandler,
|
||||
|
||||
// @PcpHandlerThread
|
||||
virtual Status InjectEndpointImpl(
|
||||
ClientProxy* client,
|
||||
const std::string& service_id,
|
||||
ClientProxy* client, const std::string& service_id,
|
||||
const OutOfBandConnectionMetadata& metadata) = 0;
|
||||
|
||||
// @PcpHandlerThread
|
||||
@@ -466,6 +464,11 @@ class BasePcpHandler : public PcpHandler,
|
||||
void WaitForLatch(const std::string& method_name, CountDownLatch* latch);
|
||||
Status WaitForResult(const std::string& method_name, std::int64_t client_id,
|
||||
Future<Status>* future);
|
||||
bool MediumSupported(const proto::connections::Medium& medium,
|
||||
const ConnectionOptions& options) const;
|
||||
std::vector<proto::connections::Medium>
|
||||
GetSupportedConnectionMediumsByPriority(
|
||||
const ConnectionOptions& options);
|
||||
|
||||
AtomicReference<Medium> bwu_medium_{Medium::UNKNOWN_MEDIUM};
|
||||
ScheduledExecutor alarm_executor_;
|
||||
|
||||
Reference in New Issue
Block a user