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

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: 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 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_;

Powered by Google App Engine
This is Rietveld 408576698