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 05b452fd88862e8452962515f63f029f4815652c..075786c775455b0cb1b6c4ff91782c61ffb8a1a8 100644 |
--- a/content/browser/presentation/presentation_service_impl.h |
+++ b/content/browser/presentation/presentation_service_impl.h |
@@ -106,6 +106,8 @@ class CONTENT_EXPORT PresentationServiceImpl |
using SessionMessagesCallback = |
mojo::Callback<void(mojo::Array<presentation::SessionMessagePtr>)>; |
using SendMessageMojoCallback = mojo::Callback<void(bool)>; |
+ using GetPresentationReceiverSessionMojoCallback = |
mark a. foltz
2015/10/01 06:25:29
Can we combine this with DefaultSessionMojoCallbac
imcheng
2015/10/06 00:59:15
Done.
|
+ mojo::Callback<void(presentation::PresentationSessionInfoPtr)>; |
// Listener implementation owned by PresentationServiceImpl. An instance of |
// this is created when PresentationRequest.getAvailability() is resolved. |
@@ -215,6 +217,8 @@ class CONTENT_EXPORT PresentationServiceImpl |
presentation::PresentationSessionInfoPtr session) override; |
void ListenForSessionMessages( |
presentation::PresentationSessionInfoPtr session) override; |
+ void GetPresentationReceiverSession( |
+ const GetPresentationReceiverSessionMojoCallback& callback) override; |
// Creates a binding between this object and |request|. |
void Bind(mojo::InterfaceRequest<presentation::PresentationService> request); |
@@ -260,6 +264,8 @@ class CONTENT_EXPORT PresentationServiceImpl |
int request_session_id, |
const PresentationError& error); |
void OnSendMessageCallback(bool sent); |
+ void OnGetPresentationReceiverSession( |
+ const content::PresentationSessionInfo* session_info); |
// Passed to embedder's implementation of PresentationServiceDelegate for |
// later invocation when session messages arrive. |
@@ -316,6 +322,9 @@ class CONTENT_EXPORT PresentationServiceImpl |
scoped_ptr<SessionMessagesCallback> on_session_messages_callback_; |
+ scoped_ptr<GetPresentationReceiverSessionMojoCallback> |
+ receiver_session_callback_; |
+ |
// ID of the RenderFrameHost this object is associated with. |
int render_process_id_; |
int render_frame_id_; |