| Index: content/public/browser/presentation_service_delegate.h
|
| diff --git a/content/public/browser/presentation_service_delegate.h b/content/public/browser/presentation_service_delegate.h
|
| index cb1725bf763ddac7e11cd82822f1f73e194c9be0..5e6da97f4961a15b34b22e873db4c8022a9dbaa6 100644
|
| --- a/content/public/browser/presentation_service_delegate.h
|
| +++ b/content/public/browser/presentation_service_delegate.h
|
| @@ -23,6 +23,7 @@ using PresentationSessionStartedCallback =
|
| base::Callback<void(const PresentationSessionInfo&)>;
|
| using PresentationSessionErrorCallback =
|
| base::Callback<void(const PresentationError&)>;
|
| +using SendMessageCallback = base::Callback<void(bool)>;
|
|
|
| // Param #0: a vector of messages that are received.
|
| // Param #1: tells the callback handler that it may reuse strings or buffers
|
| @@ -61,8 +62,6 @@ class CONTENT_EXPORT PresentationServiceDelegate {
|
| virtual ~Observer() {}
|
| };
|
|
|
| - using SendMessageCallback = base::Callback<void(bool)>;
|
| -
|
| virtual ~PresentationServiceDelegate() {}
|
|
|
| // Registers an observer associated with frame with |render_process_id|
|
| @@ -200,6 +199,15 @@ class CONTENT_EXPORT PresentationServiceDelegate {
|
| int render_frame_id,
|
| const PresentationSessionInfo& connection,
|
| const PresentationConnectionStateChangedCallback& state_changed_cb) = 0;
|
| +
|
| + // Returns the current list of receiver connections for the offscreen
|
| + // presentation hosted on the offscreen tab containing this frame.
|
| + // In additions, registers |callback| to be run when a new receiver connection
|
| + // is available.
|
| + virtual std::vector<content::PresentationSessionInfo> GetReceiverConnections(
|
| + int render_process_id,
|
| + int render_frame_id,
|
| + const PresentationSessionStartedCallback& callback) = 0;
|
| };
|
|
|
| } // namespace content
|
|
|