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..a802fd4c2597d17df83e6c65235766489f25cb12 100644 |
--- a/content/public/browser/presentation_service_delegate.h |
+++ b/content/public/browser/presentation_service_delegate.h |
@@ -5,9 +5,14 @@ |
#ifndef CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ |
#define CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ |
+#include <vector> |
whywhat
2015/05/01 15:26:12
Doesn't seem like you need this include here.
|
+ |
#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" |
+#include "content/public/browser/presentation_session_message.h" |
namespace content { |
@@ -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 |