Index: content/browser/presentation/presentation_service_impl.h |
diff --git a/content/browser/presentation/presentation_service_impl.h b/content/browser/presentation/presentation_service_impl.h |
index 44fb0e10fa36897dc12fa01d084d7f756200b6d5..b1443daf5a3c2f9a6451e2327efc4082486ad595 100644 |
--- a/content/browser/presentation/presentation_service_impl.h |
+++ b/content/browser/presentation/presentation_service_impl.h |
@@ -97,6 +97,8 @@ class CONTENT_EXPORT PresentationServiceImpl |
using PresentationSessionMojoCallback = |
mojo::Callback<void(blink::mojom::PresentationSessionInfoPtr)>; |
+ using PresentationConnectionListMojoCallback = mojo::Callback<void( |
+ mojo::Array<blink::mojom::PresentationSessionInfoPtr>)>; |
using SessionMessagesCallback = |
mojo::Callback<void(mojo::Array<blink::mojom::SessionMessagePtr>)>; |
using SendMessageMojoCallback = mojo::Callback<void(bool)>; |
@@ -170,6 +172,8 @@ class CONTENT_EXPORT PresentationServiceImpl |
const mojo::String& presentation_id) override; |
void ListenForSessionMessages( |
blink::mojom::PresentationSessionInfoPtr session) override; |
+ void GetReceiverConnections( |
+ const PresentationConnectionListMojoCallback& callback) override; |
// Creates a binding between this object and |request|. |
void Bind(mojo::InterfaceRequest<blink::mojom::PresentationService> request); |
@@ -220,6 +224,8 @@ class CONTENT_EXPORT PresentationServiceImpl |
int request_session_id, |
const PresentationError& error); |
void OnSendMessageCallback(bool sent); |
+ void OnReceiverConnectionAvailable( |
+ const content::PresentationSessionInfo& session_info); |
// Calls to |delegate_| to start listening for state changes for |connection|. |
// State changes will be returned via |OnConnectionStateChanged|. |
@@ -257,6 +263,7 @@ class CONTENT_EXPORT PresentationServiceImpl |
std::string default_presentation_url_; |
+ // Maps from a presentation URL to a screen availability listener. |
using ScreenAvailabilityListenerMap = |
std::map<std::string, std::unique_ptr<ScreenAvailabilityListenerImpl>>; |
ScreenAvailabilityListenerMap screen_availability_listeners_; |