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

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

Issue 1037483003: [PresentationAPI] Implementing send() from WebPresentationClient to the PresentationService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved presentation_message.h/.cc to content/public/browser/ 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..da817ddfc837fac6e1ff9740dfb0440a2559b280 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.
@@ -74,6 +87,10 @@ interface PresentationService {
JoinSession(string presentation_url, string? presentation_id)
=> (PresentationSessionInfo? sessionInfo, PresentationError? error);
+ // Called when send() is called by the frame. The result callback is
+ // to get notified that message has been received and ready for next one.
whywhat 2015/04/30 15:50:58 nits: s/message/the message s/and/and the service
USE s.singapati at gmail.com 2015/05/04 16:40:28 Done.
+ SendMessage(SessionMessage message_request) => (bool success);
+
// Called when closeSession() is called by the frame.
CloseSession(string presentation_url, string presentation_id);

Powered by Google App Engine
This is Rietveld 408576698