Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1122)

Unified Diff: content/browser/presentation/presentation_service_impl.h

Issue 1314413005: [Presentation API] 1-UA presentation support + presenter APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Yuri's comments; rework of the OffscreenPresentationManager interface Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698