mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Roll forward to cl/331498408
Signed-off-by: Alexey Polyudov <apolyudov@google.com> Change-Id: I21206f5720b0805f8c08e6604fc3b1fe08592046
This commit is contained in:
@@ -65,11 +65,14 @@ class ClientProxy final {
|
||||
bool IsAdvertising() const;
|
||||
std::string GetAdvertisingServiceId() const;
|
||||
|
||||
// Get service ID of a surrently active link (either advertising, or
|
||||
// discovering).
|
||||
std::string GetServiceId() const;
|
||||
|
||||
// Marks this client as discovering with the given callback.
|
||||
void StartedDiscovery(
|
||||
const std::string& service_id, Strategy strategy,
|
||||
const DiscoveryListener& discovery_listener,
|
||||
absl::Span<proto::connections::Medium> mediums);
|
||||
void StartedDiscovery(const std::string& service_id, Strategy strategy,
|
||||
const DiscoveryListener& discovery_listener,
|
||||
absl::Span<proto::connections::Medium> mediums);
|
||||
// Marks this client as not discovering at all.
|
||||
void StoppedDiscovery();
|
||||
bool IsDiscoveringServiceId(const std::string& service_id) const;
|
||||
@@ -97,7 +100,7 @@ class ClientProxy final {
|
||||
void OnConnectionRejected(const std::string& endpoint_id,
|
||||
const Status& status);
|
||||
|
||||
void OnBandwidthChanged(const std::string& endpoint_id, std::int32_t quality);
|
||||
void OnBandwidthChanged(const std::string& endpoint_id, Medium new_medium);
|
||||
|
||||
// Removes the endpoint from this client's list of connected endpoints. If
|
||||
// notify is true, also calls the client's
|
||||
|
||||
Reference in New Issue
Block a user