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

Unified Diff: content/browser/presentation/presentation_service_impl.h

Issue 935083002: [PresentationAPI] Implementing start/joinSession from WebPresentationClient to PresentationService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/browser/presentation/presentation_service_impl.h
diff --git a/content/browser/presentation/presentation_service_impl.h b/content/browser/presentation/presentation_service_impl.h
index 4292fafd9fa59ad5bba64f61d76714a975dc3226..4e6f7b5b5b41aa87a6f0e56ab28f0858113f820b 100644
--- a/content/browser/presentation/presentation_service_impl.h
+++ b/content/browser/presentation/presentation_service_impl.h
@@ -13,6 +13,7 @@
#include "base/memory/linked_ptr.h"
#include "content/common/content_export.h"
#include "content/common/presentation/presentation_service.mojom.h"
+#include "content/common/presentation/presentation_session.mojom.h"
#include "content/public/browser/navigation_details.h"
#include "content/public/browser/presentation_screen_availability_listener.h"
#include "content/public/browser/presentation_service_delegate.h"
@@ -50,6 +51,12 @@ class CONTENT_EXPORT PresentationServiceImpl
private:
typedef mojo::Callback<void(bool)> ScreenAvailabilityMojoCallback;
+ typedef mojo::Callback<void(
+ bool,
+ mojo::InterfaceRequest<presentation::PresentationSession>,
+ mojo::String,
+ mojo::String,
+ mojo::String)> NewSessionMojoCallback;
friend class PresentationServiceImplTest;
FRIEND_TEST_ALL_PREFIXES(PresentationServiceImplTest, RemoveAllListeners);
@@ -76,6 +83,14 @@ class CONTENT_EXPORT PresentationServiceImpl
const mojo::String& presentation_url,
const ScreenAvailabilityMojoCallback& callback) override;
void OnScreenAvailabilityListenerRemoved() override;
+ void StartSession(
+ const mojo::String& presentation_url,
+ const mojo::String& presentation_id,
+ const NewSessionMojoCallback& callback) override;
+ void JoinSession(
+ const mojo::String& presentation_url,
+ const mojo::String& presentation_id,
+ const NewSessionMojoCallback& callback) override;
// mojo::InterfaceImpl override.
// Note that this is called when the RenderFrameHost is deleted.

Powered by Google App Engine
This is Rietveld 408576698