| 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..b474a072eaaa8041890a6cf99d948bdcdc06a83b 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 =
|
| + 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,9 @@ class CONTENT_EXPORT PresentationServiceImpl
|
| int request_session_id,
|
| const PresentationError& error);
|
| void OnSendMessageCallback(bool sent);
|
| + void OnGetPresentationReceiverSessionSuccess(
|
| + const content::PresentationSessionInfo& session_info);
|
| + void OnGetPresentationReceiverSessionError(const std::string& error);
|
|
|
| // Passed to embedder's implementation of PresentationServiceDelegate for
|
| // later invocation when session messages arrive.
|
| @@ -316,6 +323,9 @@ class CONTENT_EXPORT PresentationServiceImpl
|
|
|
| scoped_ptr<SessionMessagesCallback> on_session_messages_callback_;
|
|
|
| + scoped_ptr<GetPresentationReceiverSessionMojoCallback>
|
| + presenter_session_callback_;
|
| +
|
| // ID of the RenderFrameHost this object is associated with.
|
| int render_process_id_;
|
| int render_frame_id_;
|
|
|