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

Unified Diff: content/browser/presentation/presentation_service_impl.cc

Issue 1037483003: [PresentationAPI] Implementing send() from WebPresentationClient to the PresentationService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated callback handling, message invalidation and and sending generic message struct. 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/browser/presentation/presentation_service_impl.cc
diff --git a/content/browser/presentation/presentation_service_impl.cc b/content/browser/presentation/presentation_service_impl.cc
index 9e2fd22e9c8c59971ce8f898b92864e220704a2e..0915dbfdbb1b8b017e73742d626d0ff3442b01c6 100644
--- a/content/browser/presentation/presentation_service_impl.cc
+++ b/content/browser/presentation/presentation_service_impl.cc
@@ -300,6 +300,24 @@ void PresentationServiceImpl::SetDefaultPresentationURL(
DoSetDefaultPresentationUrl(new_default_url, default_presentation_id);
}
+void PresentationServiceImpl::SendMessage(
+ presentation::MessageRequestPtr message_request,
+ const SendMessageMojoCallback& callback) {
+ DCHECK(!message_request.is_null());
+ if (delegate_) {
+ // TODO(s.singapati): delegate_->SendMessage() is currently disabled
+ //because of invalid include path of presentation_message.h.
+ /*
+ delegate_->SendMessage(
+ render_frame_host_->GetProcess()->GetID(),
+ render_frame_host_->GetRoutingID(),
+ new MessageRequest(message_request.Pass()));
+ */
+ }
+
+ callback.Run();
+}
+
void PresentationServiceImpl::CloseSession(
const mojo::String& presentation_url,
const mojo::String& presentation_id) {

Powered by Google App Engine
This is Rietveld 408576698