You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chromium/chromium-85-NearbyConnectio...

30 lines
1.1 KiB

diff --git a/chrome/browser/nearby_sharing/nearby_connections_manager.h b/chrome/browser/nearby_sharing/nearby_connections_manager.h
index d6ac91e..eb1fda7 100644
--- a/chrome/browser/nearby_sharing/nearby_connections_manager.h
+++ b/chrome/browser/nearby_sharing/nearby_connections_manager.h
@@ -7,6 +7,7 @@
#include <stdint.h>
#include <memory>
+#include <string>
#include <vector>
#include "base/callback.h"
@@ -25,11 +26,13 @@
// A callback for handling incoming connections while advertising.
class IncomingConnectionListener {
+ public:
virtual ~IncomingConnectionListener() = default;
- virtual void OnIncomingConnection(const std::string& endpoint_id,
- const std::vector<uint8_t>& endpoint_info,
- NearbyConnection connection) = 0;
+ virtual void OnIncomingConnection(
+ const std::string& endpoint_id,
+ const std::vector<uint8_t>& endpoint_info,
+ std::unique_ptr<NearbyConnection> connection) = 0;
};
// A callback for handling discovered devices while discovering.