| 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 fd82045e669888a756a16a85336eed7f723fb7fd..de35b86221c190df94017c3d45f5d2ea1ed402ba 100644
|
| --- a/content/public/browser/presentation_service_delegate.h
|
| +++ b/content/public/browser/presentation_service_delegate.h
|
| @@ -5,13 +5,18 @@
|
| #ifndef CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_
|
| #define CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_
|
|
|
| +#include <vector>
|
| +
|
| #include "base/callback.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "base/memory/scoped_vector.h"
|
| #include "content/common/content_export.h"
|
| #include "content/public/browser/presentation_session.h"
|
|
|
| namespace content {
|
|
|
| class PresentationScreenAvailabilityListener;
|
| +struct PresentationSessionMessage;
|
|
|
| // An interface implemented by embedders to handle presentation API calls
|
| // forwarded from PresentationServiceImpl.
|
| @@ -38,6 +43,8 @@ class CONTENT_EXPORT PresentationServiceDelegate {
|
| base::Callback<void(const PresentationSessionInfo&)>;
|
| using PresentationSessionErrorCallback =
|
| base::Callback<void(const PresentationError&)>;
|
| + using PresentationSessionMessageCallback = base::Callback<void(
|
| + scoped_ptr<ScopedVector<PresentationSessionMessage>>)>;
|
|
|
| virtual ~PresentationServiceDelegate() {}
|
|
|
| @@ -129,6 +136,14 @@ class CONTENT_EXPORT PresentationServiceDelegate {
|
| const std::string& presentation_id,
|
| const PresentationSessionSuccessCallback& success_cb,
|
| const PresentationSessionErrorCallback& error_cb) = 0;
|
| +
|
| + // Gtts the next batch of messages of all presentation session in the frame.
|
| + // |render_process_id|, |render_frame_id|: ID for originating frame.
|
| + // |message_cb|: Invoked with a list of messages.
|
| + virtual void ListenForSessionMessages(
|
| + int render_process_id,
|
| + int render_frame_id,
|
| + const PresentationSessionMessageCallback& message_cb) = 0;
|
| };
|
|
|
| } // namespace content
|
|
|