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

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

Issue 1314413005: [Presentation API] 1-UA presentation support + presenter APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
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

Powered by Google App Engine
This is Rietveld 408576698