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

Unified Diff: content/public/browser/presentation_service_delegate.h

Issue 1118103002: Implements ListenForSessionMessages in PresentationServiceImpl; uses Swap to avoid copying large da… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « content/content_browser.gypi ('k') | content/public/browser/presentation_session_message.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..697a2306abae3a79e78a70cd64ebf4a0ad557eed 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>
+
#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;
+
+ // Gets the next batch of messages from all presentation sessions in the frame
+ // |render_process_id|, |render_frame_id|: ID for originating frame.
+ // |message_cb|: Invoked with a non-empty list of messages.
+ virtual void ListenForSessionMessages(
+ int render_process_id,
+ int render_frame_id,
+ const PresentationSessionMessageCallback& message_cb) = 0;
};
} // namespace content
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/presentation_session_message.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698