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

Unified Diff: content/renderer/presentation/presentation_dispatcher.h

Issue 979413002: [Presentation API] Additional plumbing for PresentationServiceImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@REAL-NEW-MASTER
Patch Set: Added handling for overlapping requests, default presentation id, 1-UA fallback 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
Index: content/renderer/presentation/presentation_dispatcher.h
diff --git a/content/renderer/presentation/presentation_dispatcher.h b/content/renderer/presentation/presentation_dispatcher.h
index d0c0c2f4fd790db412d0c545671974acd2957060..1a0deb6a057966a0b310da65f48f02bf6529b121 100644
--- a/content/renderer/presentation/presentation_dispatcher.h
+++ b/content/renderer/presentation/presentation_dispatcher.h
@@ -42,14 +42,20 @@ class CONTENT_EXPORT PresentationDispatcher
const blink::WebString& presentationId,
blink::WebPresentationSessionClientCallbacks* callback);
- void OnScreenAvailabilityChanged(bool available);
+ void OnScreenAvailabilityChanged(
+ const std::string& presentation_url,
+ bool available);
void OnSessionCreated(
- blink::WebPresentationSessionClientCallbacks* callback,
- presentation::PresentationSessionInfoPtr session_info,
- presentation::PresentationErrorPtr error);
+ blink::WebPresentationSessionClientCallbacks* callback,
+ presentation::PresentationSessionInfoPtr session_info,
+ presentation::PresentationErrorPtr error);
void ConnectToPresentationServiceIfNeeded();
+ void DoUpdateAvailableChangeWatched(
+ const std::string& presentation_url,
+ bool watched);
+
// Used as a weak reference. Can be null since lifetime is bound to the frame.
blink::WebPresentationController* controller_;
presentation::PresentationServicePtr presentation_service_;

Powered by Google App Engine
This is Rietveld 408576698