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

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

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/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 ba0bf99d56bfddcb0da9e3790d335432d6d99c09..14f9121204254fa46ac56272447305a245b70c3e 100644
--- a/content/public/browser/presentation_service_delegate.h
+++ b/content/public/browser/presentation_service_delegate.h
@@ -138,13 +138,20 @@ class CONTENT_EXPORT PresentationServiceDelegate {
const PresentationSessionStartedCallback& success_cb,
const PresentationSessionErrorCallback& error_cb) = 0;
- // Close an existing presentation session.
+ // Closes an existing presentation session.
// |render_process_id|, |render_frame_id|: ID for originating frame.
// |presentation_id|: The ID of the presentation to close.
virtual void CloseSession(int render_process_id,
int render_frame_id,
const std::string& presentation_id) = 0;
+ // Terminates an existing presentation session.
+ // |render_process_id|, |render_frame_id|: ID for originating frame.
+ // |presentation_id|: The ID of the presentation to terminate.
+ virtual void TerminateSession(int render_process_id,
+ int render_frame_id,
+ const std::string& presentation_id) = 0;
+
// Listen for messages for a presentation session.
whywhat 2015/11/20 06:26:49 nit: should you add 's' to the leading verb here a
mlamouri (slow - plz ping) 2015/11/27 11:48:47 Done.
// |render_process_id|, |render_frame_id|: ID for originating frame.
// |session|: URL and ID of presentation session to listen for messages.

Powered by Google App Engine
This is Rietveld 408576698