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

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: Added queuing mechanism for postMessage requests. (WIP) Created 5 years, 9 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 99ab552c37f40c542d3588b9c14c0189abb8df32..8438ac7c49806fb3ca9f0ddbb80186a2bec663ee 100644
--- a/content/common/presentation/presentation_service.mojom
+++ b/content/common/presentation/presentation_service.mojom
@@ -21,6 +21,17 @@ struct PresentationError {
string message;
};
+enum MessageType {
imcheng 2015/04/02 23:57:24 Doesn't look like these are used. Remove them for
USE s.singapati at gmail.com 2015/04/07 17:45:16 Done.
+ TEXT,
+ BINARY,
+};
+
+enum BinaryType {
+ NONE,
+ BLOB,
+ ARRAYBUFFER,
+};
+
interface PresentationService {
// Called when the frame sets or changes the default presentation URL or
// presentation ID.
@@ -70,6 +81,12 @@ interface PresentationService {
JoinSession(string presentation_url, string? presentation_id)
=> (PresentationSessionInfo? sessionInfo, PresentationError? error);
+ // Called when postMessage is called by the frame.
+ PostMessages(
+ string presentation_url,
+ string presentation_id,
+ array<string> string_messages);
imcheng 2015/04/02 23:57:24 => (); This means PresentationDispatcher will sup
USE s.singapati at gmail.com 2015/04/07 17:45:16 Done.
+
// Called when closeSession() is called by the frame.
CloseSession(string presentation_url, string presentation_id);
};

Powered by Google App Engine
This is Rietveld 408576698