Index: chrome/browser/media/router/presentation_service_delegate_impl.h |
diff --git a/chrome/browser/media/router/presentation_service_delegate_impl.h b/chrome/browser/media/router/presentation_service_delegate_impl.h |
index 1549f75d98a0d38b71e25080e9101c08648d5658..56bcffd909ed3b7873d0bb13567b958abb689b29 100644 |
--- a/chrome/browser/media/router/presentation_service_delegate_impl.h |
+++ b/chrome/browser/media/router/presentation_service_delegate_impl.h |
@@ -18,6 +18,7 @@ |
#include "chrome/browser/media/router/media_router.h" |
#include "chrome/browser/media/router/media_source.h" |
#include "chrome/browser/media/router/presentation_request.h" |
+#include "chrome/browser/media/router/presentation_service_delegate_observers.h" |
#include "chrome/browser/media/router/render_frame_host_id.h" |
#include "content/public/browser/presentation_service_delegate.h" |
#include "content/public/browser/web_contents_observer.h" |
@@ -48,7 +49,7 @@ class RouteRequestResult; |
// and is managed by the associated WebContents. |
class PresentationServiceDelegateImpl |
: public content::WebContentsUserData<PresentationServiceDelegateImpl>, |
- public content::PresentationServiceDelegate { |
+ public content::ControllerPresentationServiceDelegate { |
public: |
// Observer interface for listening to default presentation request |
// changes for the WebContents. |
@@ -130,6 +131,11 @@ class PresentationServiceDelegateImpl |
const content::PresentationSessionInfo& connection, |
const content::PresentationConnectionStateChangedCallback& |
state_changed_cb) override; |
+ void ConnectToOffscreenPresentation( |
+ int render_process_id, |
+ int render_frame_id, |
+ const content::PresentationSessionInfo& session, |
+ content::PresentationConnectionPtr connection) override; |
// Callback invoked when a default PresentationRequest is started from a |
// browser-initiated dialog. |
@@ -209,6 +215,7 @@ class PresentationServiceDelegateImpl |
MediaRouter* router_; |
std::unique_ptr<PresentationFrameManager> frame_manager_; |
+ PresentationServiceDelegateObservers observers_; |
base::WeakPtrFactory<PresentationServiceDelegateImpl> weak_factory_; |