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

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

Issue 1084293004: [PresentationAPI] Added on-session-message handler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 8 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
« no previous file with comments | « no previous file | content/browser/presentation/presentation_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 21de733b7b0cab9558f7b9feff54661c7d687961..fd85fe8f3444207f03aca3fe1093b846633894df 100644
--- a/content/browser/presentation/presentation_service_impl.h
+++ b/content/browser/presentation/presentation_service_impl.h
@@ -64,6 +64,8 @@ class CONTENT_EXPORT PresentationServiceImpl
using SessionStateCallback =
mojo::Callback<void(presentation::PresentationSessionInfoPtr,
presentation::PresentationSessionState)>;
+ using SessionMessagesCallback =
+ mojo::Callback<void(mojo::Array<presentation::SessionMessagePtr>)>;
// A helper data class used by PresentationServiceImpl to do bookkeeping
// of currently registered screen availability listeners.
@@ -207,6 +209,8 @@ class CONTENT_EXPORT PresentationServiceImpl
const mojo::String& presentation_id) override;
void ListenForSessionStateChange(
const SessionStateCallback& callback) override;
+ void ListenForSessionMessages(
+ const SessionMessagesCallback& callback) override;
// Creates a binding between this object and |request|.
void Bind(mojo::InterfaceRequest<presentation::PresentationService> request);
« no previous file with comments | « no previous file | content/browser/presentation/presentation_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698