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 bc15dd0975ede0bf5f187e29c9048e50e98ee9da..36b3203c0207b0535bb50efa2469a707086651e0 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. |
@@ -132,6 +133,13 @@ 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 controller_connection_ptr, |
+ content::PresentationConnectionRequest receiver_connection_request) |
+ override; |
// Callback invoked when a default PresentationRequest is started from a |
// browser-initiated dialog. |
@@ -211,6 +219,7 @@ class PresentationServiceDelegateImpl |
MediaRouter* router_; |
std::unique_ptr<PresentationFrameManager> frame_manager_; |
+ PresentationServiceDelegateObservers observers_; |
base::WeakPtrFactory<PresentationServiceDelegateImpl> weak_factory_; |