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

Unified Diff: content/browser/presentation/presentation_service_impl.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 | « chrome/chrome_tests_unit.gypi ('k') | content/browser/presentation/presentation_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/presentation/presentation_service_impl.h
diff --git a/content/browser/presentation/presentation_service_impl.h b/content/browser/presentation/presentation_service_impl.h
index 44fb0e10fa36897dc12fa01d084d7f756200b6d5..b1443daf5a3c2f9a6451e2327efc4082486ad595 100644
--- a/content/browser/presentation/presentation_service_impl.h
+++ b/content/browser/presentation/presentation_service_impl.h
@@ -97,6 +97,8 @@ class CONTENT_EXPORT PresentationServiceImpl
using PresentationSessionMojoCallback =
mojo::Callback<void(blink::mojom::PresentationSessionInfoPtr)>;
+ using PresentationConnectionListMojoCallback = mojo::Callback<void(
+ mojo::Array<blink::mojom::PresentationSessionInfoPtr>)>;
using SessionMessagesCallback =
mojo::Callback<void(mojo::Array<blink::mojom::SessionMessagePtr>)>;
using SendMessageMojoCallback = mojo::Callback<void(bool)>;
@@ -170,6 +172,8 @@ class CONTENT_EXPORT PresentationServiceImpl
const mojo::String& presentation_id) override;
void ListenForSessionMessages(
blink::mojom::PresentationSessionInfoPtr session) override;
+ void GetReceiverConnections(
+ const PresentationConnectionListMojoCallback& callback) override;
// Creates a binding between this object and |request|.
void Bind(mojo::InterfaceRequest<blink::mojom::PresentationService> request);
@@ -220,6 +224,8 @@ class CONTENT_EXPORT PresentationServiceImpl
int request_session_id,
const PresentationError& error);
void OnSendMessageCallback(bool sent);
+ void OnReceiverConnectionAvailable(
+ const content::PresentationSessionInfo& session_info);
// Calls to |delegate_| to start listening for state changes for |connection|.
// State changes will be returned via |OnConnectionStateChanged|.
@@ -257,6 +263,7 @@ class CONTENT_EXPORT PresentationServiceImpl
std::string default_presentation_url_;
+ // Maps from a presentation URL to a screen availability listener.
using ScreenAvailabilityListenerMap =
std::map<std::string, std::unique_ptr<ScreenAvailabilityListenerImpl>>;
ScreenAvailabilityListenerMap screen_availability_listeners_;
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | content/browser/presentation/presentation_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698