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

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: rebase 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 28a83285f71445ca6c625307fcac2c28b810531a..ec0909d4354b0fbe8f7680f3e2c67939da2bd183 100644
--- a/content/public/browser/presentation_service_delegate.h
+++ b/content/public/browser/presentation_service_delegate.h
@@ -137,14 +137,21 @@ 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;
- // Listen for messages for a presentation session.
+ // 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;
+
+ // Listens for messages for a presentation session.
// |render_process_id|, |render_frame_id|: ID for originating frame.
// |session|: URL and ID of presentation session to listen for messages.
// |message_cb|: Invoked with a non-empty list of messages whenever there are
« no previous file with comments | « content/common/presentation/presentation_service.mojom ('k') | content/renderer/presentation/presentation_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698