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

Unified Diff: content/renderer/presentation/presentation_dispatcher.cc

Issue 1466573002: Presentation API: implement renderer side of PresentationConnection.close(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/renderer/presentation/presentation_dispatcher.cc
diff --git a/content/renderer/presentation/presentation_dispatcher.cc b/content/renderer/presentation/presentation_dispatcher.cc
index 4826e5ad1f577f079df01715cd71001d86a1d0b2..9f528b8ebea3ebed9a160eaab9751926bd828fc4 100644
--- a/content/renderer/presentation/presentation_dispatcher.cc
+++ b/content/renderer/presentation/presentation_dispatcher.cc
@@ -205,7 +205,7 @@ void PresentationDispatcher::HandleSendMessageRequests(bool success) {
}
}
-void PresentationDispatcher::terminateSession(
+void PresentationDispatcher::closeSession(
const blink::WebString& presentationUrl,
const blink::WebString& presentationId) {
ConnectToPresentationServiceIfNeeded();
@@ -215,6 +215,16 @@ void PresentationDispatcher::terminateSession(
presentationId.utf8());
}
+void PresentationDispatcher::terminateSession(
+ const blink::WebString& presentationUrl,
+ const blink::WebString& presentationId) {
+ ConnectToPresentationServiceIfNeeded();
+
+ presentation_service_->TerminateSession(
+ presentationUrl.utf8(),
+ presentationId.utf8());
+}
+
void PresentationDispatcher::getAvailability(
const blink::WebString& availabilityUrl,
blink::WebPresentationAvailabilityCallbacks* callbacks) {

Powered by Google App Engine
This is Rietveld 408576698