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 3005609e936722a0eb1051965e1db2446c3e758a..e4358897ac45587e8608d9d709ffd4975d5a5e05 100644 |
--- a/content/public/browser/presentation_service_delegate.h |
+++ b/content/public/browser/presentation_service_delegate.h |
@@ -26,6 +26,11 @@ class PresentationSessionStateListener; |
using PresentationSessionMessageCallback = base::Callback< |
void(const ScopedVector<content::PresentationSessionMessage>&, bool)>; |
+using PresentationReceiverSessionAvailableCallback = |
+ base::Callback<void(const content::PresentationSessionInfo&)>; |
+ |
+using SendMessageCallback = base::Callback<void(bool)>; |
+ |
// An interface implemented by embedders to handle presentation API calls |
// forwarded from PresentationServiceImpl. |
class CONTENT_EXPORT PresentationServiceDelegate { |
@@ -51,7 +56,6 @@ class CONTENT_EXPORT PresentationServiceDelegate { |
base::Callback<void(const PresentationSessionInfo&)>; |
using PresentationSessionErrorCallback = |
base::Callback<void(const PresentationError&)>; |
- using SendMessageCallback = base::Callback<void(bool)>; |
virtual ~PresentationServiceDelegate() {} |
@@ -179,6 +183,16 @@ class CONTENT_EXPORT PresentationServiceDelegate { |
int render_process_id, |
int render_frame_id, |
content::PresentationSessionStateListener* listener) = 0; |
+ |
+ virtual void GetPresentationReceiverSession( |
+ int render_process_id, |
+ int render_frame_id, |
+ const PresentationReceiverSessionAvailableCallback& success_callback, |
+ const base::Callback<void(const std::string&)>& error_callback) = 0; |
+ |
+ virtual std::vector<content::PresentationSessionInfo> |
+ GetPresentationReceiverSessions(int render_process_id, |
+ int render_frame_id) = 0; |
}; |
} // namespace content |