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

Unified Diff: content/common/presentation/presentation_service.mojom

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
Index: content/common/presentation/presentation_service.mojom
diff --git a/content/common/presentation/presentation_service.mojom b/content/common/presentation/presentation_service.mojom
index 91da501913f3637a7f6912d88b5151b2f72489eb..1ec3d7cddfbfeaffac102cad6403d513daeec294 100644
--- a/content/common/presentation/presentation_service.mojom
+++ b/content/common/presentation/presentation_service.mojom
@@ -26,6 +26,19 @@ struct PresentationError {
string message;
};
+enum PresentationMessageType {
+ TEXT,
+ ARRAY_BUFFER,
+};
+
+struct SessionMessage {
+ string presentation_url;
+ string presentation_id;
+ PresentationMessageType type;
+ string? message;
+ array<uint8>? data;
+};
+
interface PresentationService {
// Called when the frame sets or changes the default presentation URL or
// presentation ID.
@@ -83,4 +96,8 @@ interface PresentationService {
ListenForSessionStateChange()
=> (PresentationSessionInfo sessionInfo,
PresentationSessionState newState);
+
+ // Called when the frame is ready to process the next batch of messages.
+ ListenForSessionMessages()
+ => (array<SessionMessage> messages);
};
« no previous file with comments | « content/browser/presentation/presentation_service_impl.cc ('k') | content/renderer/presentation/presentation_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698