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

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

Issue 978543002: [Presentation API] Plumbing the |defaultpresentationstart| event from Blink to browser/Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed DefaultPresentation to DefaultSession in line with the Blink CL Created 5 years, 9 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 | « no previous file | content/browser/presentation/presentation_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 65e729f49bd85d0c73f5ba844c23837237dedf05..3688d25a8e130097dad12d346572efa48dfa9def 100644
--- a/content/browser/presentation/presentation_service_impl.h
+++ b/content/browser/presentation/presentation_service_impl.h
@@ -54,6 +54,8 @@ class CONTENT_EXPORT PresentationServiceImpl
using NewSessionMojoCallback =
mojo::Callback<void(presentation::PresentationSessionInfoPtr,
presentation::PresentationErrorPtr)>;
+ using DefaultSessionMojoCallback =
+ mojo::Callback<void(presentation::PresentationSessionInfoPtr)>;
friend class PresentationServiceImplTest;
FRIEND_TEST_ALL_PREFIXES(PresentationServiceImplTest, RemoveAllListeners);
@@ -80,6 +82,8 @@ class CONTENT_EXPORT PresentationServiceImpl
const mojo::String& presentation_url,
const ScreenAvailabilityMojoCallback& callback) override;
void OnScreenAvailabilityListenerRemoved() override;
+ void ListenForDefaultSessionStart(
+ const DefaultSessionMojoCallback& callback) override;
void StartSession(
const mojo::String& presentation_url,
const mojo::String& presentation_id,
« no previous file with comments | « no previous file | content/browser/presentation/presentation_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698