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

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

Issue 1314413005: [Presentation API] 1-UA presentation support + presenter APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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/content_browser.gypi ('k') | content/public/browser/presentation_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cb1725bf763ddac7e11cd82822f1f73e194c9be0..5e6da97f4961a15b34b22e873db4c8022a9dbaa6 100644
--- a/content/public/browser/presentation_service_delegate.h
+++ b/content/public/browser/presentation_service_delegate.h
@@ -23,6 +23,7 @@ using PresentationSessionStartedCallback =
base::Callback<void(const PresentationSessionInfo&)>;
using PresentationSessionErrorCallback =
base::Callback<void(const PresentationError&)>;
+using SendMessageCallback = base::Callback<void(bool)>;
// Param #0: a vector of messages that are received.
// Param #1: tells the callback handler that it may reuse strings or buffers
@@ -61,8 +62,6 @@ class CONTENT_EXPORT PresentationServiceDelegate {
virtual ~Observer() {}
};
- using SendMessageCallback = base::Callback<void(bool)>;
-
virtual ~PresentationServiceDelegate() {}
// Registers an observer associated with frame with |render_process_id|
@@ -200,6 +199,15 @@ class CONTENT_EXPORT PresentationServiceDelegate {
int render_frame_id,
const PresentationSessionInfo& connection,
const PresentationConnectionStateChangedCallback& state_changed_cb) = 0;
+
+ // Returns the current list of receiver connections for the offscreen
+ // presentation hosted on the offscreen tab containing this frame.
+ // In additions, registers |callback| to be run when a new receiver connection
+ // is available.
+ virtual std::vector<content::PresentationSessionInfo> GetReceiverConnections(
+ int render_process_id,
+ int render_frame_id,
+ const PresentationSessionStartedCallback& callback) = 0;
};
} // namespace content
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/presentation_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698