| Index: chrome/browser/media/router/presentation_service_delegate_impl.cc
|
| diff --git a/chrome/browser/media/router/presentation_service_delegate_impl.cc b/chrome/browser/media/router/presentation_service_delegate_impl.cc
|
| index 99ef1d08981ba13b9ccf601034b14644095d305f..744a06f0f8ca3722fe9e2f9e206f7bfc2bc8b5fb 100644
|
| --- a/chrome/browser/media/router/presentation_service_delegate_impl.cc
|
| +++ b/chrome/browser/media/router/presentation_service_delegate_impl.cc
|
| @@ -21,6 +21,8 @@
|
| #include "chrome/browser/media/router/media_router_factory.h"
|
| #include "chrome/browser/media/router/media_sink.h"
|
| #include "chrome/browser/media/router/media_source_helper.h"
|
| +#include "chrome/browser/media/router/offscreen_presentation_manager.h"
|
| +#include "chrome/browser/media/router/offscreen_presentation_manager_factory.h"
|
| #include "chrome/browser/media/router/presentation_media_sinks_observer.h"
|
| #include "chrome/browser/media/router/route_message.h"
|
| #include "chrome/browser/media/router/route_message_observer.h"
|
| @@ -666,6 +668,9 @@ PresentationServiceDelegateImpl::PresentationServiceDelegateImpl(
|
| router_(MediaRouterFactory::GetApiForBrowserContext(
|
| web_contents_->GetBrowserContext())),
|
| frame_manager_(new PresentationFrameManager(web_contents, router_)),
|
| + offscreen_presentation_manager_(
|
| + OffscreenPresentationManagerFactory::GetOrCreateForBrowserContext(
|
| + web_contents_->GetBrowserContext())),
|
| weak_factory_(this) {
|
| DCHECK(web_contents_);
|
| DCHECK(router_);
|
| @@ -914,6 +919,23 @@ void PresentationServiceDelegateImpl::ListenForConnectionStateChange(
|
| state_changed_cb);
|
| }
|
|
|
| +void PresentationServiceDelegateImpl::RegisterReceiverAvailableCallback(
|
| + const content::ReceiverConnectionAvailableCallback&
|
| + receiver_available_callback) {
|
| + NOTREACHED();
|
| +}
|
| +
|
| +void PresentationServiceDelegateImpl::RegisterOffscreenPresentationConnection(
|
| + int render_process_id,
|
| + int render_frame_id,
|
| + const content::PresentationSessionInfo& session,
|
| + content::PresentationConnectionPtr connection) {
|
| + RenderFrameHostId render_frame_host_id(render_process_id, render_frame_id);
|
| + offscreen_presentation_manager_->RegisterOffscreenPresentationController(
|
| + session.presentation_id, session.presentation_url, render_frame_host_id,
|
| + std::move(connection));
|
| +}
|
| +
|
| void PresentationServiceDelegateImpl::OnRouteResponse(
|
| const PresentationRequest& presentation_request,
|
| const RouteRequestResult& result) {
|
|
|