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 dea2c88c37d89940f495810411836156aac20d6c..251af6932667d9445bf6f207e0a7043f490b86cd 100644 |
--- a/content/browser/presentation/presentation_service_impl.h |
+++ b/content/browser/presentation/presentation_service_impl.h |
@@ -8,6 +8,7 @@ |
#include <deque> |
#include <map> |
#include <memory> |
+#include <set> |
#include <string> |
#include <vector> |
@@ -171,6 +172,9 @@ class CONTENT_EXPORT PresentationServiceImpl |
const std::string& presentation_id) override; |
void ListenForSessionMessages( |
blink::mojom::PresentationSessionInfoPtr session) override; |
+ void SetPresentationConnection( |
+ blink::mojom::PresentationSessionInfoPtr session, |
+ blink::mojom::PresentationConnectionPtr connection) override; |
// Creates a binding between this object and |request|. |
void Bind(mojo::InterfaceRequest<blink::mojom::PresentationService> request); |
@@ -227,13 +231,18 @@ class CONTENT_EXPORT PresentationServiceImpl |
void ListenForConnectionStateChange( |
const PresentationSessionInfo& connection); |
- // Passed to embedder's implementation of PresentationServiceDelegate for |
- // later invocation when session messages arrive. |
void OnSessionMessages( |
const content::PresentationSessionInfo& session, |
const ScopedVector<PresentationSessionMessage>& messages, |
bool pass_ownership); |
+ // A callback registered to OffscreenPresentationManager when |
+ // receiver PSImpl inits. Calls |client_| to create a new |
+ // PresentationConnection on receiver page. |
+ void OnReceiverConnectionAvailable( |
+ const content::PresentationSessionInfo& session_info, |
+ PresentationConnectionPtr&& controller_connection); |
+ |
// Associates a JoinSession |callback| with a unique request ID and |
// stores it in a map. |
// Returns a positive value on success. |