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

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

Issue 999003004: Implementing closeSession from WebPresentationClient to PresentationService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: After merge 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
« no previous file with comments | « content/renderer/presentation/presentation_dispatcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/presentation/presentation_dispatcher.cc
diff --git a/content/renderer/presentation/presentation_dispatcher.cc b/content/renderer/presentation/presentation_dispatcher.cc
index d44b9929a0fb548a4422a2cb687de5d940acfd38..eec933b874dba7d3ebdf510d6dc3833d3e3a74e5 100644
--- a/content/renderer/presentation/presentation_dispatcher.cc
+++ b/content/renderer/presentation/presentation_dispatcher.cc
@@ -120,6 +120,16 @@ void PresentationDispatcher::joinSession(
base::Owned(callback)));
}
+void PresentationDispatcher::closeSession(
+ const blink::WebString& presentationUrl,
+ const blink::WebString& presentationId) {
+ ConnectToPresentationServiceIfNeeded();
+
+ presentation_service_->CloseSession(
+ presentationUrl.utf8(),
+ presentationId.utf8());
+}
+
void PresentationDispatcher::DidChangeDefaultPresentation() {
GURL presentation_url(GetPresentationURLFromFrame(render_frame()));
« no previous file with comments | « content/renderer/presentation/presentation_dispatcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698