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..65e729f49bd85d0c73f5ba844c23837237dedf05 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" |
@@ -49,7 +50,10 @@ class CONTENT_EXPORT PresentationServiceImpl |
mojo::InterfaceRequest<presentation::PresentationService> request); |
private: |
- typedef mojo::Callback<void(bool)> ScreenAvailabilityMojoCallback; |
+ using ScreenAvailabilityMojoCallback = mojo::Callback<void(bool)>; |
+ using NewSessionMojoCallback = |
+ mojo::Callback<void(presentation::PresentationSessionInfoPtr, |
+ presentation::PresentationErrorPtr)>; |
friend class PresentationServiceImplTest; |
FRIEND_TEST_ALL_PREFIXES(PresentationServiceImplTest, RemoveAllListeners); |
@@ -76,6 +80,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. |