| 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 0a3fe6fbab3f5787ee3aa291ae20a9dc337d3e25..b6a790dd07c9e98bab4a3d5c45daf2b85a1fbc65 100644
|
| --- a/content/browser/presentation/presentation_service_impl.h
|
| +++ b/content/browser/presentation/presentation_service_impl.h
|
| @@ -102,6 +102,8 @@ class CONTENT_EXPORT PresentationServiceImpl
|
| using SessionMessagesCallback =
|
| mojo::Callback<void(mojo::Array<presentation::SessionMessagePtr>)>;
|
| using SendMessageMojoCallback = mojo::Callback<void(bool)>;
|
| + using GetPresenterSessionMojoCallback =
|
| + mojo::Callback<void(presentation::PresentationSessionInfoPtr)>;
|
|
|
| // Listener implementation owned by PresentationServiceImpl. An instance of
|
| // this is created when PresentationRequest.getAvailability() is resolved.
|
| @@ -194,6 +196,8 @@ class CONTENT_EXPORT PresentationServiceImpl
|
| void ListenForSessionStateChange() override;
|
| void ListenForSessionMessages(
|
| presentation::PresentationSessionInfoPtr session) override;
|
| + void GetPresenterSession(
|
| + const GetPresenterSessionMojoCallback& callback) override;
|
|
|
| // Creates a binding between this object and |request|.
|
| void Bind(mojo::InterfaceRequest<presentation::PresentationService> request);
|
| @@ -239,6 +243,9 @@ class CONTENT_EXPORT PresentationServiceImpl
|
| int request_session_id,
|
| const PresentationError& error);
|
| void OnSendMessageCallback(bool sent);
|
| + void OnGetPresenterSessionSuccess(
|
| + const content::PresentationSessionInfo& session_info);
|
| + void OnGetPresenterSessionError(const std::string& error);
|
|
|
| // Passed to embedder's implementation of PresentationServiceDelegate for
|
| // later invocation when session messages arrive.
|
| @@ -294,6 +301,8 @@ class CONTENT_EXPORT PresentationServiceImpl
|
|
|
| scoped_ptr<SessionMessagesCallback> on_session_messages_callback_;
|
|
|
| + scoped_ptr<GetPresenterSessionMojoCallback> presenter_session_callback_;
|
| +
|
| // ID of the RenderFrameHost this object is associated with.
|
| int render_process_id_;
|
| int render_frame_id_;
|
|
|