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

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: No (c) in new files Copyright message. Created 5 years, 7 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 | « content/browser/presentation/presentation_service_impl_unittest.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/presentation/presentation_service.mojom
diff --git a/content/common/presentation/presentation_service.mojom b/content/common/presentation/presentation_service.mojom
index 79d1d2071854bf2e8aad3b44c3e0ec34c985d11b..5fb4f404625752e539f14378ec93f47c0456e092 100644
--- a/content/common/presentation/presentation_service.mojom
+++ b/content/common/presentation/presentation_service.mojom
@@ -27,16 +27,16 @@ struct PresentationError {
};
enum PresentationMessageType {
- TEXT,
- ARRAY_BUFFER,
+ TEXT,
+ ARRAY_BUFFER,
};
struct SessionMessage {
- string presentation_url;
- string presentation_id;
- PresentationMessageType type;
- string? message;
- array<uint8>? data;
+ string presentation_url;
+ string presentation_id;
+ PresentationMessageType type;
+ string? message;
+ array<uint8>? data;
};
interface PresentationService {
@@ -87,6 +87,13 @@ interface PresentationService {
JoinSession(string presentation_url, string? presentation_id)
=> (PresentationSessionInfo? sessionInfo, PresentationError? error);
+ // Called when send() is called by the frame. The true in the
+ // result callback notifies that the service is ready for next message.
+ // The false in the result callback notifies the renderer to stop sending
+ // the send requests and invalidate all pending requests. This occurs
+ // for eg., when frame is deleted or navigated away.
+ SendSessionMessage(SessionMessage message_request) => (bool success);
+
// Called when closeSession() is called by the frame.
CloseSession(string presentation_url, string presentation_id);
« no previous file with comments | « content/browser/presentation/presentation_service_impl_unittest.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698