Chromium Code Reviews| 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 1f5e928483d0ef8830d372d5499a72d9690f330e..5430e0877f554ba7741e73c63cf5970b4c83f32b 100644 |
| --- a/content/public/browser/presentation_service_delegate.h |
| +++ b/content/public/browser/presentation_service_delegate.h |
| @@ -29,6 +29,11 @@ using SessionStateChangedCallback = |
| using PresentationSessionMessageCallback = base::Callback< |
| void(const ScopedVector<content::PresentationSessionMessage>&, bool)>; |
| +using PresenterSessionAvailableCallback = |
| + 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 { |
| @@ -54,7 +59,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() {} |
| @@ -180,6 +184,16 @@ class CONTENT_EXPORT PresentationServiceDelegate { |
| int render_process_id, |
| int render_frame_id, |
| const SessionStateChangedCallback& state_changed_cb) = 0; |
| + |
| + virtual void GetPresenterSession( |
| + int render_process_id, |
|
miu
2015/09/17 00:09:20
BTW--Most of the methods in this interface have th
imcheng
2015/09/26 01:21:57
It's definitely possible to use it on non main fra
|
| + int render_frame_id, |
| + const PresenterSessionAvailableCallback& success_callback, |
| + const base::Callback<void(const std::string&)>& error_callback) = 0; |
| + |
| + virtual std::vector<content::PresentationSessionInfo> GetPresenterSessions( |
| + int render_process_id, |
| + int render_frame_id) = 0; |
| }; |
| } // namespace content |