summaryrefslogtreecommitdiffstats
path: root/content/public/browser/presentation_service_delegate.h
diff options
context:
space:
mode:
authormlamouri <mlamouri@chromium.org>2015-11-27 08:28:59 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-27 16:29:55 +0000
commitc65a70d71da5f3643889d4995a7cc13153c08cf4 (patch)
tree88a82a870433f92c9fcbddce9f57621637e173bc /content/public/browser/presentation_service_delegate.h
parent36db5d666d573cfcf74be94574b06daa48d3769d (diff)
downloadchromium_src-c65a70d71da5f3643889d4995a7cc13153c08cf4.zip
chromium_src-c65a70d71da5f3643889d4995a7cc13153c08cf4.tar.gz
chromium_src-c65a70d71da5f3643889d4995a7cc13153c08cf4.tar.bz2
Presentation API: implement renderer side of PresentationConnection.close().
This is basically implementing the Blink side and the plumbing going to the Media Router. Intent to ship: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/24gzqKMiiR8 Spec: https://w3c.github.io/presentation-api/ BUG=540803 Review URL: https://codereview.chromium.org/1466573002 Cr-Commit-Position: refs/heads/master@{#362009}
Diffstat (limited to 'content/public/browser/presentation_service_delegate.h')
-rw-r--r--content/public/browser/presentation_service_delegate.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/content/public/browser/presentation_service_delegate.h b/content/public/browser/presentation_service_delegate.h
index 28a8328..ec0909d 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