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

Unified Diff: content/public/browser/presentation_service_delegate.h

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/content_common.gypi ('k') | content/public/common/presentation_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/presentation_service_delegate.h
diff --git a/content/public/browser/presentation_service_delegate.h b/content/public/browser/presentation_service_delegate.h
index 697a2306abae3a79e78a70cd64ebf4a0ad557eed..9b3ca39ddd4993d2f668b743e43c809428282a35 100644
--- a/content/public/browser/presentation_service_delegate.h
+++ b/content/public/browser/presentation_service_delegate.h
@@ -45,6 +45,7 @@ class CONTENT_EXPORT PresentationServiceDelegate {
base::Callback<void(const PresentationError&)>;
using PresentationSessionMessageCallback = base::Callback<void(
scoped_ptr<ScopedVector<PresentationSessionMessage>>)>;
+ using SendMessageCallback = base::Closure;
virtual ~PresentationServiceDelegate() {}
@@ -144,6 +145,17 @@ class CONTENT_EXPORT PresentationServiceDelegate {
int render_process_id,
int render_frame_id,
const PresentationSessionMessageCallback& message_cb) = 0;
+
+ // Sends a message (string or binary data) to a presentation session.
+ // |render_process_id|, |render_frame_id|: ID of originating frame.
+ // |message_request|: Contains Presentation URL, ID and message to be sent
+ // and delegate is responsible for deallocating the message_request.
+ // |send_message_cb|: Invoked after handling the send message request.
+ virtual void SendMessage(
+ int render_process_id,
+ int render_frame_id,
+ scoped_ptr<PresentationSessionMessage> message_request,
+ const SendMessageCallback& send_message_cb) = 0;
};
} // namespace content
« no previous file with comments | « content/content_common.gypi ('k') | content/public/common/presentation_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698