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

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: 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
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 84962e7ae8bd5443681f7bb3a79e59cc72f70f3b..ae3b549eb1f7feb4bbed7e7734f8e3189141f26e 100644
--- a/content/browser/presentation/presentation_service_impl.h
+++ b/content/browser/presentation/presentation_service_impl.h
@@ -64,6 +64,9 @@ class CONTENT_EXPORT PresentationServiceImpl
using SessionStateCallback =
mojo::Callback<void(presentation::PresentationSessionInfoPtr,
presentation::PresentationSessionState)>;
+ using SessionTextMessageCallback =
+ mojo::Callback<void(presentation::PresentationSessionInfoPtr,
+ mojo::String)>;
// A helper data class used by PresentationServiceImpl to do bookkeeping
// of currently registered screen availability listeners.
@@ -180,6 +183,8 @@ class CONTENT_EXPORT PresentationServiceImpl
const mojo::String& presentation_id) override;
void ListenForSessionStateChange(
const SessionStateCallback& callback) override;
+ void ListenForSessionTextMessage(
+ const SessionTextMessageCallback& callback) override;
// Creates a binding between this object and |request|.
void Bind(mojo::InterfaceRequest<presentation::PresentationService> request);

Powered by Google App Engine
This is Rietveld 408576698