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

Unified Diff: content/browser/presentation/presentation_service_impl.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/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 82abc8b2f0d526ecfd45ce9a1dc813712dde5895..9b4e46547084268b90e2a2ea805dff612d966a50 100644
--- a/content/browser/presentation/presentation_service_impl.cc
+++ b/content/browser/presentation/presentation_service_impl.cc
@@ -407,6 +407,15 @@ void PresentationServiceImpl::CloseSession(
presentation_id);
}
+void PresentationServiceImpl::TerminateSession(
+ const mojo::String& presentation_url,
+ const mojo::String& presentation_id) {
+ DVLOG(2) << "TerminateSession " << presentation_id;
+ if (delegate_)
+ delegate_->TerminateSession(render_process_id_, render_frame_id_,
+ presentation_id);
+}
+
void PresentationServiceImpl::ListenForSessionStateChange() {
if (!delegate_)
return;

Powered by Google App Engine
This is Rietveld 408576698